npm install 长时间加载不动
我试着更换了一下淘宝源
localhost:RNTest liluyang$ npm config set registry https://registry.npm.taobao.org
localhost:RNTest liluyang$ npm config get registry
https://registry.npm.taobao.org/
更换完报错
npm ERR! registry error parsing json
npm ERR! registry error parsing json
1.png
后来又试了试下边这个
localhost:RNTest liluyang$ npm config set registry http://registry.cnpmjs.org
搞定了
网友评论