npm install express 或者安装cnpm都是这个样子,是公司网络的原因么

新手上路,请多包涵

$ npm install -g cnpm --registry=https://registry.npm.taobao.org
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "cnpm" "--registry=https://registry.npm.taobao.org"
npm ERR! node v6.0.0
npm ERR! npm v3.8.6
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect

npm ERR! network connect ETIMEDOUT 114.55.80.225:443
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:Usersv_wbzhwangnpm-debug.log

阅读 7.5k
3 个回答

网络超时有很多可能性,不好说!
1.可能是对方服务器无法连接
2.可能你公司对网络做限制
3.你本地自己装了什么组件如(越墙)

不排除这个原因,之前也试过有时候早上下载安装一下子就好了,有时候整个下午都没装成功

npm config delete proxy
npm config delete https-proxy
npm config delete http-proxy

然后
npm config ls -l
看npm的代理设置是否被重置为默认

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题