加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

npm install -g react-native-cli 提示npm ERR!

发布时间:2020-12-15 04:44:09 所属栏目:百科 来源:网络整理
导读:npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:Program Filesnodejsnode.exe" "C:Program Filesnodej snode_modulesnpmbinnpm-cli.js" "install" "-g" "react-native-cli" npm ERR! node v4.0.0 npm ERR! npm v2.14.2 npm ERR! code ECO


npm ERR! Windows_NT 6.1.7601

npm ERR! argv "C:Program Filesnodejsnode.exe" "C:Program Filesnodej
snode_modulesnpmbinnpm-cli.js" "install" "-g" "react-native-cli"
npm ERR! node v4.0.0
npm ERR! npm v2.14.2
npm ERR! code ECONNRESET


npm ERR! network socket hang up
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 set
tings.
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:


修改https 配置为http。

运行

npm config set registry http://registry.npmjs.org/

再运行npm install -g react-native-cli 成功。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读