jquery - npm install --保存 jquery

标签 jquery node.js npm

我运行的是 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"

每次我尝试下载任何依赖项时,我都会不断收到以下异常。

exception

完整错误日志

enter image description here

最佳答案

此错误表示无法打开http://registry.npmjs.org/jquery网址。

要检查这一点,您可以粘贴此 http://registry.npmjs.org/jquery url进入浏览器查看是否成功请求数据。

如果是这样,可能是您的网络或 DNS 有问题。

关于jquery - npm install --保存 jquery,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48091590/

相关文章:

node.js - 使用 node.js 验证带有 CA 证书的 X509 证书

javascript - 包含返回 false

mysql - Ubuntu 16.04 Node.JS 应用程序无法连接到 MySQL 数据库 - 错误 : connect ECONNREFUSED

jquery - 如何在rails 3中实时显示日志更新?

javascript - 使用 webkit 转换 scaleY 后无法检索 html5 视频元素的正确高度

javascript - Graphics Magick with Node - 创建裁剪缩略图而不降低图像质量

javascript - 如何使用html按钮执行 Node 功能

npm install 没有将包更新到最新的 dist-tag

javascript - 有 100 行的表;需要根据行中单击的链接显示一个 div

javascript - 如何禁用 contenteditable div 中的元素?