當(dāng)安裝vue-cli時(shí),出現(xiàn)超時(shí)錯(cuò)誤
npm ERR! code ECONNRESET npm ERR! network This is a problem related to network connectivity
npm ERR! code ECONNRESET
npm ERR! network aborted
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';
解決方法如下所示:
1.在cmd終端輸入以下命令,作用是設(shè)置代理
npm config set proxy=
2.然后使用淘寶鏡像
npm config set registry https://registry.npm.taobao.org
3.下載所需要的包
npm install -g jquery
出現(xiàn)錯(cuò)誤原因是:
1.代理設(shè)置有問(wèn)題,沒(méi)有相關(guān)代理的包;文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-696214.html
2.重復(fù)安裝導(dǎo)致網(wǎng)絡(luò)阻塞;文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-696214.html
到了這里,關(guān)于nmp ERR! code ERR SOCKET TIMEOUT nmp ERR!network npmSocket timeout(已解決) npm ERR! code ECONNRESET npm ERR! network This is a problem related to network connectivity的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!