美文网首页
2020-04-24 npm 安装第三方插件报错,就用cnpm

2020-04-24 npm 安装第三方插件报错,就用cnpm

作者: 流泪手心_521 | 来源:发表于2020-04-24 10:17 被阅读0次

安装node以后,觉得npm虽然下载慢一点,但是还能接受,就没有安装cnpm。直达自己从github clone了几个开源程序,发现npm install失败了。报错npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/@nodelib%2ffs.stat
, reason: connect ETIMEDOUT 104.16.20.35: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 network
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'

错误这么多,但是问题在于需要使用cnpm

执行npm install -g cnpm --registry=https://registry.npm.taobao.org

再执行cnmp install

就ok了

相关文章

网友评论

      本文标题:2020-04-24 npm 安装第三方插件报错,就用cnpm

      本文链接:https://www.haomeiwen.com/subject/ktyxwhtx.html