vue install 报错 This is a problem related to network connectivity.
在終端安裝任何包,執(zhí)行 npm i均報(bào)錯(cuò)
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 代理出錯(cuò)
可嘗試依次執(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
總結(jié)
以上是生活随笔為你收集整理的vue install 报错 This is a problem related to network connectivity.的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: win10锁屏时间太短怎么办? win1
- 下一篇: 如何免费激活DivX专业版 附激活教程/