npm报错‘proxy‘ config is set properxy. See: ‘npm help config‘ ...

王柳  论坛元老 | 2025-3-23 03:15:39 | 显示全部楼层 | 阅读模式
打印 上一主题 下一主题

主题 1001|帖子 1001|积分 3003

1 报错信息

  1. npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ETIMEDOUT: request to https://registry.npmjs.org/vue-ref failed, reason: connect ETIMEDOUT 104.16.20.35:443 npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation. npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! network request to https://registry.npmjs.org/dom-closest failed, reason: connect ETIMEDOUT 104.16.22.35:443 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'
复制代码
2 办理方案

step1 查署理
npm config get proxy
npm config get npm config get https-proxy
npm config get registry
step2 存在署理,缓存置空
npm config set proxy null
npm config set https-proxy null
step3 设置一个镜像源(选一个举行设置)
淘宝源:
npm config set registry http://registry.npm.taobao.org/
官方源:
npm config set registry http://registry.npmjs.org/
华为源
npm config set registry https://mirrors.huaweicloud.com/repository/npm/
其他下令:
npm cache clean
npm rebuild node-sass

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复

举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

王柳

论坛元老
这个人很懒什么都没写!
快速回复 返回顶部 返回列表