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

【字号: 日期:2022-10-05浏览:18作者:雯心

问题描述

$ npm install -g cnpm --registry=https://registry.npm.taobao.orgnpm ERR! Windows_NT 10.0.10586npm ERR! argv 'C:Program Filesnodejsnode.exe' 'C:Program Filesnodejsnode_modulesnpmbinnpm-cli.js' 'install' '-g' 'cnpm' '--registry=https://registry.npm.taobao.org'npm ERR! node v6.0.0npm ERR! npm v3.8.6npm ERR! code ETIMEDOUTnpm ERR! errno ETIMEDOUTnpm ERR! syscall connect

npm ERR! network connect ETIMEDOUT 114.55.80.225:443npm ERR! network This is most likely not a problem with npm itselfnpm 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! networknpm ERR! network If you are behind a proxy, please make sure that thenpm 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

问题解答

回答1:

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

回答2:

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

相关文章: