npm ERR! network request to https://registry.npm.taobao.org/cnpm failed, reason: connect ETIMEDOUT 221.236.11.73:443 npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad netw
原因:公司只能通过使用了代理网络访问外网
解决办法:
npm config set https-proxy http://server:port
npm config set proxy http://server:port
注意:server:port 指的是代理服务的IP地址和端口号
使用淘宝镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org