解決辦法最全之There appears to be trouble with your network connection. Retrying...

1.兄弟你網不好,換個試試

2.更換鏡像源

npm i nrm -g—>nrm ls(查看有那些鏡像)---->例:nrm use taobao

3.代理出了問題,朋友,給他幹掉!

npm config rm https-proxy

yarn config delete proxy

npm config rm proxy

4.代理超時

其實這步和2可以一起放到一起,下載對應代理 如 cnpm nj npmMirror ednpm 等用nrm use+(對應代理) 進行切換

小結:希望能幫助到你~

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