http - bower 使用 http 而不是 https

标签 http https npm bower

有没有办法强制 bower 安装使用 http 而不是 https?我能够通过 npm config set strict-ssl false 在 npm 中解决这个问题。我想知道是否有可以运行的 bower 命令来禁用 ssl。谢谢。

最佳答案

添加或编辑您的用户或项目特定的 .bowerrc 文件并添加以下配置。

{
  "strict-ssl": false
}

这与 npm 配置文件中的 strict-ssl false 完全一样。

关于http - bower 使用 http 而不是 https,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41468209/

相关文章:

javascript - 原始 h264 转 GIF Node js

angular - RxJS 将 catch() 添加到已共享的 Observable

php - 我正在尝试获取 pecl_http

php - 合并HTTP和HTTPS URL的社交共享计数

javascript - 如何在 Visual Studio Code 中执行 AngularJS

javascript - 由于包名称中的连字符而导致令人困惑的 TypeScript 错误?

http - 在 Heroku 上获取客户端的真实 IP 地址

google-chrome - 使用 https 访问的 iFrame 被 Chrome 标记为 'unencrypted' ... 为什么?

javascript - 页面通过 HTTPS 加载但请求了不安全的 XMLHttpRequest 端点

ssl - Ring 是否请求 { :scheme :https} guarantee a HTTPS connection?