npm install報(bào)錯(cuò):request to?https://registry.npm.taobao.org/vue-loader?failed, reason: getaddrinfo ENOTFOUND registry.npm.taobao.org
解決:https://jingyan.baidu.com/article/acf728fd99b16ff8e510a301.html
查看鏡像源:npm get registry
https://registry.npmjs.org/
國(guó)內(nèi)npm鏡像源設(shè)置
淘寶npm鏡像
搜索地址:npmmirror 鏡像站
registry地址:http://registry.npm.taobao.org/
cnpmjs鏡像
搜索地址:npmmirror 鏡像站
registry地址:http://r.cnpmjs.org/
使用方法:
臨時(shí)使用npm --registry?https://registry.npm.taobao.org?install express
持久使用npm config set registry?https://registry.npm.taobao.org文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-822182.html
配置完成后可通過(guò)下面方式來(lái)驗(yàn)證是否成功
npm config get registry文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-822182.html
到了這里,關(guān)于淘寶鏡像請(qǐng)求失敗解決方法:request to https://registry.npm.taobao.org/vue-loader failed的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!