场景
使用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代理环境有问题,可能会有缓存
问题处理
- 关闭代理
npm config set proxy false
- 清理缓存:
npm cache clean --force