使用npm,yarn,pnpm等前端包依赖管理工具安装依赖包例如axios等项目时,全部提示因为网络问题失败,报错如下 npm error code ETIMEDOUT npm error syscall connect npm error errno ETIMEDOUT npm error network request to registry.npmjs.org/axios failed, reason: connect ETIMEDOUT 104.16.2.35:443 npm error network This is a problem related to network connectivity. npm error network In most cases you are behind a proxy or have bad network settings. npm error network npm error network If you are behind a proxy, please make sure that the npm error network 'proxy' config is set properly. See: 'npm help config' npm error A complete log of this run can be found in: C:\Users\wangxl\AppData\Local\npm-cache_logs\2024-12-24T15_29_20_590Z-debug-0.log 在更改镜像和用管理员身份运行cmd都不能解决问题,同时使用php的包依赖管理工具composer安装依赖时正常没问题