[Yarn]There appears to be trouble with your network connection. Retrying...

背景

有一個項目需要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

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章