2017-03-03 78 views
0

我試圖用 NPM install來安裝體解析器體解析器--save 我得到這個錯誤錯誤安裝體解析器v1.17.0

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 

好心幫 感謝

回答

2

這不是節點錯誤,而是DNS錯誤。 嘗試使用CMD運行:從機器ping'registry.npmjs.org',應該也會失敗。如果是這樣,請將您的DNS設置爲谷歌的(8.8.8.8和8.8.4.4)