Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

installing stucked #245

Open
CookieJunkie opened this issue Apr 22, 2021 · 7 comments
Open

installing stucked #245

CookieJunkie opened this issue Apr 22, 2021 · 7 comments

Comments

@CookieJunkie
Copy link

image

@karlhorky
Copy link

karlhorky commented Apr 22, 2021

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...

@ynynloxx
Copy link

ynynloxx commented Apr 23, 2021

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 .

@RedSparr0w
Copy link

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

@logue
Copy link

logue commented Apr 28, 2021

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 har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request@2.88.2: 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

@karlhorky
Copy link

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

@CookieJunkie
Copy link
Author

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

@rodrigogs
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants