[英]npm install windows-build-tools on windows
OS - Windows-10
node - v8.12.0
npm - 6.4.1
我正在使用的命令(以管理員身份運行):
npm install --global --production --verbose windows-build-tools
> windows-build-tools@5.2.2 postinstall C:\Users\winuser\AppData\Roaming\npm\node_modules\windows-build-tools
> node ./dist/index.js
Downloading vs_BuildTools.exe
[============================================>] 100.0% of 1.12 MB (1.12 MB/s)
Downloaded vs_BuildTools.exe. Saved to C:\Users\winuser\.windows-build-tools\vs_BuildTools.exe.
Starting installation...
Launched installers, now waiting for them to finish.
This will likely take some time - please be patient!
Status from the installers:
---------- Visual Studio Build Tools ----------
2021-11-23T15:34:08 : Verbose : [InstalledProductsProviderImpl]: Stream was closed
2021-11-23T15:34:08 : Verbose : [InstallerImpl]: Rpc connection was closed.
2021-11-23T15:34:08 : Verbose : [InstallerImpl]: Stream was closed
2021-11-23T15:34:09 : Verbose : Completed notifying all clients that the update is starting
2021-11-23T15:34:09 : Verbose : Updating installer [bootstrapperArguments: -- /finalizeInstall install --in C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_setup_bootstrapper_202111231533560643.json --norestart --quiet --includeRecommended --add Microsoft.VisualStudio.Workload.VCTools --locale en-US --activityId 61b330e5-53cf-4d1e-819c-b2acdd48ed03]
------------------- Python --------------------
Python 2.7.18 is already installed, not installing again.
出不來,試了好幾次。 在這兩個時代,它看起來都停留在同一點上。
嘗試了以下命令,它已安裝但顯示Could not install Visual Studio Build Tools.
npm install --global --production windows-build-tools@4.0.0
Starting installation...
Launched installers, now waiting for them to finish.
This will likely take some time - please be patient!
Status from the installers:
---------- Visual Studio Build Tools ----------
Successfully installed Visual Studio Build Tools.
---------- Visual Studio Build Tools ----------
Successfully installed Visual Studio Build Tools.
------------------- Python --------------------
Python 2.7.18 is already installed, not installing again.
Could not install Visual Studio Build Tools.
Please find more details in the log files, which can be found at
C:\Users\winuser\.windows-build-tools
有誰能夠幫我?
您應該在安裝過程中手動安裝Visual Studio和 select .NET 和 C/C++ 組件。 我有同樣的問題,這對我有用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.