前端[yarnpkg/yarn] There appears to be trouble with your network connection.

6

前端[yarnpkg/yarn] There appears to be trouble with your network connection. 近日,我安装完React-Na…

前端[yarnpkg/yarn] There appears to be trouble with your network connection.

近日,我安装完React-Native环境之后,惊讶的发现,yarn用不了了,不知道是安装了RN环境的问题,还是别的问题,yarn也重装了,但是依然没有解决问题。下面放几个解决问题的方法:

前端[yarnpkg/yarn] There appears to be trouble with your network connection.

方法一:前端[yarnpkg/yarn] There appears to be trouble with your network connection.

1
yarn install --network-timeout 1000000    //我试了无效

方法二:

1、安装好后更换淘宝镜像

1
2
3
4
yarn config set registry https://registry.npm.taobao.org
yarn config delete proxy
npm config rm proxy
npm config rm https-proxy

npm 超时

安装cnpm镜像

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

使用代理registry

1
npm config set registry https://registry.npm.taobao.org

方法三:前端[yarnpkg/yarn] There appears to be trouble with your network connection.

使用npm或cnpm
前端[yarnpkg/yarn] There appears to be trouble with your network connection.

前端[yarnpkg/yarn] There appears to be trouble with your network connection.

目前我使用cnpm和npm来进行报的添加。

作者: huanggr

为您推荐

7

发表评论

电子邮件地址不会被公开。 必填项已用*标注

联系我们

联系我们

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

关注微博
返回顶部