• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

npm ERR! code ETIMEDOUTnpm ERR! errno ETIMEDOUTnpm ERR! network request to httphotoshop://registry.npmjs.or

武飞扬头像
WBSRYA
帮助1

问题:

npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/express failed, reason: connect ETIMEDOUT 104.16.26.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'

解决方法:

检查node与npm是否安装成功

node -v  npm -v

学新通

全局安装epress测试npm是否能正常使用 npm install express -g

学新通

安装失败,连接超时,进行如下操作

npm config set proxy null 清空代理

npm cache clean --force 清理缓存

npm config set registry http://registry.npmjs.org/ 重新设置镜像源

npm config set registry https://registry.npm.taobao.org 国内淘宝镜像

(如果嫌安装依赖慢的话 可以使用这个)

学新通

再次安装express进行测试

学新通

如上成功。

在项目中使用npm install 进行测试发现可以正常使用运行项目。

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhgfhgkf
系列文章
更多 icon
同类精品
更多 icon
继续加载