1、安装node8 32位
https://nodejs.org/dist/v10.24.1/
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