我正在尝试使用npm安装body-parser --save我得到了这个错误
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "body-parser"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall getaddrinfo
npm ERR! enoent getaddrinfo ENOENT registry.npmjs.org:80
npm ERR! enoent getaddrinfo ENOENT registry.npmjs.org:80
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Omowumi\nodefirstapp\npm-debug.log好心帮忙,谢谢
发布于 2017-03-04 05:10:26
这不是节点错误,而是DNS错误。尝试在机器上使用CMD:'ping registry.npmjs.org‘运行,应该也会失败。如果是,请将您的DNS设置为google的(8.8.8.8和8.8.4.4)
https://stackoverflow.com/questions/42588134
复制相似问题