前端安装依赖问题解决

1,038 阅读1分钟
  1. npm网络错误
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 lf you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See. 'npm help config

1721271256514.png

解决方法:

切换淘宝镜像

npm config set registry https://registry.npmmirror.com

重新安装依赖

npm i