当前位置: 移动技术网 > IT编程>开发语言>JavaScript > 在vs code 中用npm下载webpack出错

在vs code 中用npm下载webpack出错

2020年08月12日  | 移动技术网IT编程  | 我要评论

npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/webpack 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’
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\LENOVO\AppData\Roaming\npm-cache_logs\2020-08-11T01_21_19_209Z-debug.log

在vs code 中用npm下载webpack时,总是报以上的错误。
此时先输入
npm install -g npm
然后重新输入
npm i webpack webpack-cli -D

本文地址:https://blog.csdn.net/qq_44791528/article/details/107928309

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网