首页 > 解决方案 > 在安装 npm 包时出现 ETIMEDOUT 错误?

问题描述

这是我在安装 npm 包时遇到的错误,我已经从 Windows 中卸载了节点并再次安装,但仍然出现此错误:

npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/axios failed, reason: connect ETIMEDOUT 104.16.16.35: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 ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Ch Wasiq\AppData\Roaming\npm-cache\_logs\2020-08-31T07_38_36_764Z-debug.log

标签: javascriptnode.jsreactjsnpm

解决方案


推荐阅读