-- 创造无限可能

npm install报错

2023-07-17 23:26:13
298 人浏览 0 人点赞
有用,点赞支持一下

场景

使用npm install报错

npm WARN deprecated axios@0.18.1: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
npm ERR! code ECONNRESET
npm ERR! network aborted
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!     地址\Local\npm-cache\_logs\2023-07-17T10_43_44_769Z-debug-0.log

问题分析

后台设置的proxy代理环境有问题,可能会有缓存

问题处理

  1. 关闭代理 npm config set proxy false
  2. 清理缓存:npm cache clean --force