如何修复“npm ERR!网络如果您位于代理后面”

Aks*_*ddy 3 npm

我正在尝试安装npm install --global bower,但出现错误:

npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to http://registry.npmjs.org/bower failed, reason: connect ETIMEDOUT 13.25.26.4:8080
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 timing npm Completed in 147880ms

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\aksha\AppData\Roaming\npm-cache\_logs\2019-06-27T05_03_12_739Z-debug.log
Run Code Online (Sandbox Code Playgroud)

Aks*_*ddy 10

我已经运行了这些命令,它为我解决了

npm 配置删除代理
npm 配置删除 http 代理
npm 配置删除 https 代理