1. 程式人生 > >Request to https://bower.herokuapp.com failed with 502

Request to https://bower.herokuapp.com failed with 502

命名 錯誤 使用 inf 方法 with fail 最新 目錄

bower 版本過低,需要升級為最新bower版本,

如果升級版本後依然無法使用,更改.bowerrc配置,如下所示

{
  "directory": "bower_components",
  "registry": "https://registry.bower.io",
  "strict-ssl": false
 
  
}

.bowerrc文件可以位於bower.json和bower_components文件夾所在的文件夾中。如果它不存在,你可以制作一個。

方法一:用cmd命令創建文件如下

type null >.bowerrc

技術分享圖片

如果返回錯誤提示信息也沒關系,因為還是能創建成功!

方法二:

首先進入項目目錄下,新建文件1.txt

然後命令行進入項目目錄下,輸入命令重命名該文件為.bowerrc

rename 1.txt .bowerrc

也是可以的

Request to https://bower.herokuapp.com failed with 502