windows-build-tools icon indicating copy to clipboard operation
windows-build-tools copied to clipboard

installing stucked

Open CookieJunkie opened this issue 4 years ago • 7 comments
trafficstars

image

CookieJunkie avatar Apr 22 '21 11:04 CookieJunkie

Another option is to try installing the build tools via Chocolatey instead (use an Administrator command line):

choco install python visualstudio2017-workload-vctools -y
npm config set msvs_version 2017

Maybe this should be documented in the readme as an alternative...

karlhorky avatar Apr 22 '21 14:04 karlhorky

I have the same problem, where I get stuck at the same line. I've tried

choco install python visualcpp-build-tools -y
npm config set msvs_version 2017

And I didn't get any errors. Thanks for the help @karlhorky .

Would be nice if I can get an updated if the suggestion worked in your case @CookieJunkie .

ynynloxx avatar Apr 23 '21 10:04 ynynloxx

Having the same problem, seemed to install fine with chocolatey (I think) as I'm getting different errors now for canvas/sharp 😅

RedSparr0w avatar Apr 24 '21 05:04 RedSparr0w

I tried the method using chocolatey, but it didn't work.

PS C:\Windows\system32> choco install python visualcpp-build-tools -y
Chocolatey v0.10.15
Installing the following packages:
python;visualcpp-build-tools
By installing you accept licenses for the packages.
python v3.9.4 already installed.
 Use --force to reinstall, specify a version to install, or try upgrade.
Progress: Downloading visualcpp-build-tools 15.0.26228.20170424... 100%

visualcpp-build-tools v15.0.26228.20170424 [Approved]
visualcpp-build-tools package files install completed. Performing other installation steps.
Downloading visualcpp-build-tools
  from 'https://download.microsoft.com/download/5/A/8/5A8B8314-CA70-4225-9AF0-9E957C9771F7/vs_BuildTools.exe'
Progress: 100% - Completed download of C:\Users\logue\AppData\Local\Temp\chocolatey\visualcpp-build-tools\15.0.26228.20170424\vs_BuildTools.exe (1013.11 KB).
Download of vs_BuildTools.exe (1013.11 KB) completed.
Hashes match.
Installing visualcpp-build-tools...
visualcpp-build-tools has been installed.
 The install of visualcpp-build-tools was successful.
  Software installed as 'EXE', install location is likely default.

Chocolatey installed 1/2 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Warnings:
 - python - python v3.9.4 already installed.
 Use --force to reinstall, specify a version to install, or try upgrade.
PS C:\Windows\system32> npm config set msvs_version 2017
PS C:\Windows\system32> npm install --global windows-build-tools
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
[                  ] - reify:resolve: timing reifyNode:node_modules/windows-build-tools/node_modules/ajv Completed in 3

When I installed Python with Chocolatey, it was installed in C: \ Python39, so I passed the path as below with npm, but it still freezes at the same way.

npm config set python C:\Python39\python.exe

logue avatar Apr 28 '21 09:04 logue

@logue installing via Chocolatey is an alternative to windows-build-tools - no need to install windows-build-tools afterwards :)

karlhorky avatar Apr 28 '21 10:04 karlhorky

I've just moved my project to C:/Project and trouble gone

CookieJunkie avatar Apr 28 '21 14:04 CookieJunkie

Another option is to try installing the build tools via Chocolatey instead (use an Administrator command line):

choco install python visualstudio2017-workload-vctools -y
npm config set msvs_version 2017

Maybe this should be documented in the readme as an alternative...

Totally works. Windows 10 20H2

rodrigogs avatar Jul 30 '21 03:07 rodrigogs