webpack报错1

报错代码:

npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npm.taobao.org/electron-to-chromium failed, reason: connect ETIMEDOUT 123.138.154.89:443
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 ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lenovo\AppData\Roaming\npm-cache_logs\2021-04-08T08_12_45_642Z-debug.log

报错信息:

解决:

从报错代码可以分析出是npm代理网络设置错误问题,需要从新设置代理:

npm config set registry "http://registry.npmjs.org/"

设置代理后再下载即可。

posted @ 2021-04-08 16:25  黛黛318  阅读(82)  评论(0编辑  收藏  举报