背景
有一个项目需要yarn start启动,但是建议先升级一下yarn
报错
[3/5] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
方案
网上我查到2中解决方案,使用的第二种成功解决
方案一
设置淘宝镜像
yarn config set registry https://registry.npm.taobao.org
方案二
全局安装yarn
npm install yarn -g