拉取vue项目安装的依赖包的时候报以下错误。
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ETIMEDOUT: request to https://registry.npmjs.org/@vue%2fcli-plugin-eslint failed, reason: connect ETIMEDOUT 104.16.26.34:443
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/echarts/-/echarts-5.4.0.tgz failed, reason: connect ETIMEDOUT 104.16.27.34: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 config set proxy null命令,将代理清空
重新npm i,依赖安装成功