npm安装给定错误

npm安装给定错误,npm,Npm,我正在尝试使用以下命令安装: npm install --save-dev should 但每次都会出现以下错误: npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\gyanendra_nath\\ AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save-dev

我正在尝试使用以下命令安装:

npm install --save-dev should
但每次都会出现以下错误:

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\gyanendra_nath\\
AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save-dev
" "should"
npm ERR! node v4.4.7
npm ERR! npm  v3.10.5
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!     C:\Users\gyanendra_nath\Node\Supertest\npm-debug.log
-----------------------------------------------------------------------

请帮助我解决此问题。

请尝试以下命令。如果代理没有问题,这应该可以工作

npm install -g should@10.0.0
这应该在下面的路径中安装程序包

C:\Users\gyanendra_nath\AppData\Roaming\npm\node_modules\npm\node_modules\should
我使用了以下版本

node --version
v6.1.0

npm --version
3.8.6
我的路径变量设置为

C:\Users\username\AppData\Roaming\npm
如果要升级节点版本,请参阅以下链接


我想知道下面的解决方案是否解决了您的问题?
C:\Users\username\AppData\Roaming\npm