把版本换成 lts 版本。我也不知道为什么我的 node.js16 安装失败了。
npm install --global --production windows-build-tools
# 指定python2
npm config set python "C:\Users\Administrator\.windows-build-tools\python27\python.exe"
# 然后再安装
npm install -g node-gyp
把版本换成 lts 版本。我也不知道为什么我的 node.js16 安装失败了。
npm install --global --production windows-build-tools
# 指定python2
npm config set python "C:\Users\Administrator\.windows-build-tools\python27\python.exe"
# 然后再安装
npm install -g node-gyp