我正在尝试安装node_module但收到以下错误:
例如:npm install grunt-preprocess
D:\grunt_pre>npm install grunt-preprocess
npm http GET https://registry.npmjs.org/grunt-preprocess
npm http GET https://registry.npmjs.org/grunt-preprocess
npm http GET https://registry.npmjs.org/grunt-preprocess
npm ERR! Error: connect ETIMEDOUT
npm ERR! at errnoException (net.js:901:11)
npm ERR! at Object.afterConnect [as oncomplete] (net.js:892:19)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "grunt-preprocess"
npm ERR! cwd D:\grunt_pre
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.3.5
npm ERR! syscall connect
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! D:\grunt_pre\npm-debug.log
npm ERR! not ok code 0
Run Code Online (Sandbox Code Playgroud)
Sal*_*man 22
注册表URL指向https,您可以尝试更改它
npm config set registry="http://registry.npmjs.org/"
Run Code Online (Sandbox Code Playgroud)
然后尝试安装模块.您可能在阻止secure(https)连接的代理后面
如果它不起作用,那么您可以手动尝试从此处下载您尝试安装的模块的当前版本
并运行命令 npm install grunt-preprocess-2.3.0.tgz
| 归档时间: |
|
| 查看次数: |
15575 次 |
| 最近记录: |