当前位置:   article > 正文

npm install 下载资源时 npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND_npm err! code enotfound npm err! syscall getaddrin

npm err! code enotfound npm err! syscall getaddrinfo npm err! errno enotfoun

npm install 下载资源时出现下面问题:

问题:

npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to http://registry.cnpmjs.org/@riophae%2fvue-treeselect failed, reason: getaddrinfo ENOTFOUND registry.cnpmjs.org
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'
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

处理方法:

1、取消ssl验证:

npm config set strict-ssl false


2、更换npm镜像源:
npm config set registry http://registry.cnpmjs.org
npm config set registry http://registry.npm.taobao.org
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/573901
推荐阅读
相关标签
  

闽ICP备14008679号