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

can not install the package #240

Open
lizeqiangd opened this issue Mar 24, 2021 · 4 comments
Open

can not install the package #240

lizeqiangd opened this issue Mar 24, 2021 · 4 comments

Comments

@lizeqiangd
Copy link

it just stuck in
[ ] \ reify:resolve: timing reifyNode:node_modules/windows-build-tools/node_modules/ajv Complete
and after ctrl+c .it shows

PS D:\Code\wechaty-getting-started> 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 request/request#3142
npm ERR! code 3221225786
npm ERR! path C:\Users\Lizeqiangd\AppData\Roaming\npm\node_modules\windows-build-tools
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node ./dist/index.js
Downloading vs_BuildTools.exe
npm ERR! [> ] 0.0% (0 B/s)
npm ERR! Downloaded vs_BuildTools.exe. Saved to C:\Users\Lizeqiangd.windows-build-tools\vs_BuildTools.exe.
npm ERR!
npm ERR! Starting installation...
npm ERR! Launched installers, now waiting for them to finish.
npm ERR! This will likely take some time - please be patient!
npm ERR!
npm ERR! Status from the installers:
---------- Visual Studio Build Tools ----------

how can i fix it?

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

@liuliangsir
Copy link

Same issue here

image

@akshayp660
Copy link

I am also facing issues while installing after putting the command it stuck at the following moment as shown in the image below
error 1

then waiting for a long time I pressed ctr+c and it shows as follow
error 2

Please help as there are other bugs pending to solve as it depends on the windows-build-tools installation

@karlhorky
Copy link

karlhorky commented May 26, 2021

@liuliangsir @akshayp660 try out installing Chocolatey and running the command in my comment above: #240

This is an alternative to windows-build-tools. The current version of windows-build-tools doesn't work for a lot of people.

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

4 participants