繁体   English   中英

NPM在Windows 10上安装Java问题

[英]NPM install java Issue on windows 10

我使用cmd作为管理员使用npm install java安装java,但出现错误。 还设置了所有环境变量。 任何帮助将非常适用。 提前致谢..

gyp ERR! configure error gyp ERR! stack Error: gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\\Users\\MyName\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\lib\\configure.js :336:16) gyp ERR! stack at emitTwo (events.js:125:13) gyp ERR! stack at ChildProcess.emit (events.js:213:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12) gyp ERR! System Windows_NT 10.0.15063 gyp ERR! command "C:\\\\Program Files\\\\nodejs\\\\node.exe" "C:\\\\Users\\\\MyName\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\node-gy p\\\\bin\\\\node-gyp.js" "rebuild" gyp ERR! cwd C:\\WINDOWS\\system32 gyp ERR! node -v v8.1.3 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\\Users\\MyName\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\lib\\configure.js :336:16) gyp ERR! stack at emitTwo (events.js:125:13) gyp ERR! stack at ChildProcess.emit (events.js:213:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12) gyp ERR! System Windows_NT 10.0.15063 gyp ERR! command "C:\\\\Program Files\\\\nodejs\\\\node.exe" "C:\\\\Users\\\\MyName\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\node-gy p\\\\bin\\\\node-gyp.js" "rebuild" gyp ERR! cwd C:\\WINDOWS\\system32 gyp ERR! node -v v8.1.3 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok

请遵循以下步骤

rm -rf ~/.node-gyp/
rm -r node_modules/.bin/;
rm -r build/
npm install bcrypt

并设置

npm config set msvs_version 2013 --global

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM