使用npm install <module-name>
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\ProgramFiles\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "npm" "-g"
npm ERR! node v5.1.0
npm ERR! npm v3.3.12
npm ERR! code EAI_AGAIN
npm ERR! errno EAI_AGAIN
npm ERR! syscall getaddrinfo
npm ERR! getaddrinfo EAI_AGAIN registry.npmjs.org:443
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! D:\npm-debug.log
我试过
NodeJS
和npm
答案 0 :(得分:0)
检查在您发出命令的同一文件夹中生成的日志文件的详细信息:
cat npm-debug.log 在我的情况下,错误与在键入package.json的内容时发生的错误相关: