日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學(xué)無(wú)先后,達(dá)者為師

網(wǎng)站首頁(yè) Vue 正文

【VUE】yarn install 報(bào)錯(cuò): info There appears to be trouble with your network connection. Retrying...

作者:Lucky@Dong 更新時(shí)間: 2022-04-10 Vue

場(chǎng)景:

最近大家在使用yarn的時(shí)候出現(xiàn)下面這種提示的頻率越來(lái)越高了:

例如:info There appears to be trouble with your network connection. Retrying…


問題描述:


原因分析:

info There appears to be trouble with your network connection. Retrying... 信息:

第一步:網(wǎng)絡(luò)連接似乎出了點(diǎn)問題,請(qǐng)重試... 但仔細(xì)檢查下來(lái),網(wǎng)絡(luò)并沒有什么問題?

第二步:網(wǎng)絡(luò)一切正常,那么問題就很可能出現(xiàn)在了代理連接上。

? ? ? ? ? ? ? 查一下代理設(shè)置:??yarn config get registry? ? 發(fā)現(xiàn)是淘寶源,那是怎么回事?

? ? ? ? ? ? ?
?

第三步:沒查到原因那就,重新配置:詳見解決方案。


解決方案:

更換安裝依賴的鏡像,使用淘寶鏡像安裝,代碼如下:
1、安裝好后更換淘寶鏡像
yarn config set registry https://registry.npm.taobao.org

2、移除原代理
yarn config delete proxy
npm config rm proxy
npm config rm https-proxy

3、安裝cnpm鏡像并使用代理registry
安裝cnpm鏡像
npm install -g cnpm --registry=https://registry.npm.taobao.org
使用代理registry
npm config set registry https://registry.npm.taobao.org

?

4、npm install? 可以了
?

原文鏈接:https://blog.csdn.net/zzddada/article/details/123502618

欄目分類
最近更新