日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

vue install 报错 This is a problem related to network connectivity.

發(fā)布時間:2023/12/31 90 豆豆
生活随笔 收集整理的這篇文章主要介紹了 vue install 报错 This is a problem related to network connectivity. 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

在終端安裝任何包,執(zhí)行 npm i均報錯

npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network ‘proxy’ config is set properly. See: ‘npm help config’

npm 代理出錯

可嘗試依次執(zhí)行:

npm config get proxy npm config get https-proxy

兩者均返回null,否則,執(zhí)行set null的命令,再安裝淘寶鏡像

npm config set registry http://registry.cnpmjs.org/ npm install -g cnpm --registry=https://registry.npm.taobao.org

之后可以執(zhí)行 npm i

總結

以上是生活随笔為你收集整理的vue install 报错 This is a problem related to network connectivity.的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。