ETIMEDOUT 在 Windows 上安装 Node 包时出错 [英] ETIMEDOUT Error while installing Node packages on Windows
问题描述
我正在尝试使用来自全新安装的节点的 npm 在我的 Windows 机器上安装节点包.
I am trying to install node packages on my windows machine using npm from a fresh install of node.
但是,我收到了 ETIMEDOUT 错误.我检查了一些其他具有类似问题的 stackoverflow 问题,几乎所有问题都与代理背后的问题有关.我的情况也不是这样.我的系统不在任何代理服务器后面.有人能帮我解决吗.
however, I am getting ETIMEDOUT errors. I checked few other stackoverflow questions with similar problem and almost all of them are related to problems when behind a proxy. Same is not the case with me. My system is not behind any proxy server. Can someone help me with resolving it.
PS C:\windows\system32> npm -v
2.5.1
PS C:\windows\system32> npm install bower -g
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i
nstall" "bower" "-g"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect
npm ERR! network connect ETIMEDOUT
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! Please include the following file with any support request:
npm ERR! C:\windows\system32\npm-debug.log
推荐答案
我发布这个答案,以防有人遇到同样的问题.
I am posting this answer in case some one faces the same issue.
我可以通过运行以下命令来解决这个问题:
I was able to solve this by running following command:
npm config delete proxy
这篇关于ETIMEDOUT 在 Windows 上安装 Node 包时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!