使用npm安装rn组件,报错。使用yarn add 也失败。
If you are behind a proxy, please make sure that the
npm ERR! network ‘proxy’ config is set properly. See: ‘npm help config’
错误信息如下
解决方法
npm config get proxy
npm config rm proxy
npm config rm https-proxy
如果还安装失败
使用http代替https(taobao镜像也可以,根据自己需求)
npm config set registry http://registry.npmjs.org/
使用 npm install eslint –save-dev报错:
解决方法
npm set registry http://registry.npmjs.org
然后再运行npm的相关命令