我运行的是 Ubuntu 16.04 我在 ~/.npmrc 上设置了代理,它看起来像以下配置
registry="http://registry.npmjs.org/"
proxy="http://username:password@proxyconfig:port"
strict-ssl=false
http-proxy="http://username:password@proxyconfig:port"
http_proxy="http://username:password@proxyconfig:port"
https_proxy="http://username:password@proxyconfig:port"
https-proxy="http://username:password@proxyconfig:port"
每次我尝试下载任何依赖项时,我都会不断收到以下异常。
完整错误日志
最佳答案
此错误表示无法打开http://registry.npmjs.org/jquery网址。
要检查这一点,您可以粘贴此 http://registry.npmjs.org/jquery url进入浏览器查看是否成功请求数据。
如果是这样,可能是您的网络或 DNS 有问题。
关于jquery - npm install --保存 jquery,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48091590/