bower 使用 http 而不是 https

bower to use http instead of https

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

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

{
  "strict-ssl": false
}

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