我正在尝试通过npm安装angular-cli。我已经安装了最新版本的Nodejs和git。我没有使用代理服务器(通过netsh winhttp show proxy
和Internet Explorer LAN设置进行了验证),而且我的互联网连接没有问题。当我尝试运行
npm install -g angular-cli
时,我会收到以下错误信息:
C:\Windows\system32>npm install -g angular-cli
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "angular-cli"
npm ERR! node v7.3.0
npm ERR! npm v3.10.10
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect
npm ERR! network connect ETIMEDOUT 151.101.192.162:80
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 settin
gs.
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
我尝试通过npm cache clean
清理缓存,还尝试将注册表更改为http:\
npm config set registry http://registry.npmjs.org/
我尝试卸载nodejs并重新安装,但它仍然无法工作。我得到了相同的错误。有任何想法吗?