1、安装node8 32位

https://nodejs.org/dist/v10.24.1/

官网:https://nodejs.org/

所有版本:https://nodejs.org/dist/

2、查看位数

node -p "process.arch"

3、安装套件

C:\Users\Administrator\.windows-build-tools

https://www.npmjs.com/package/windows-build-tools

npm install -–global -–production windows-build-tools --registry=https://registry.npm.taobao.org

https://dotnet.microsoft.com/download/visual-studio-sdks

4.5.2

https://download.microsoft.com/download/4/3/B/43B61315-B2CE-4F5B-9E32-34CCA07B2F0E/NDP452-KB2901951-x86-x64-DevPack.exe

npm install -–global -–production windows-build-tools@4.0.0 --registry=https://registry.npm.taobao.org

 

4、安装node-gyp

npm install -global node-gyp --registry=https://registry.npm.taobao.org

5、gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1

最新版不能用

6、yarn

npm install -–global yarn --registry=https://registry.npm.taobao.org

7、安装依赖

yarn install --registry=https://registry.npm.taobao.org
npm install --registry=https://registry.npm.taobao.org

 

相关文章:

  • 2022-12-23
  • 2022-02-17
  • 2021-04-28
  • 2021-10-19
猜你喜欢
  • 2021-12-16
  • 2022-02-07
  • 2021-10-25
相关资源
相似解决方案