无法使用Bower安装handlebarjs

时间:2014-08-06 07:34:02

标签: handlebars.js bower

我正在尝试使用Bower安装handlebarjs包。我收到以下错误。

enter image description here

有什么想法吗?

2 个答案:

答案 0 :(得分:2)

尝试使用直接github网址

进行安装
bower install https://github.com/wycats/handlebars.js/

答案 1 :(得分:1)

我需要为git和bower设置代理

对于git

git config --global http.proxy http://<domain>%5C<username>:<password>@proxy.server.com:8080
git config --global https.proxy http://<domain>%5C<username>:<password>@proxy.server.com:8080

编辑你的.bowerrc文件(应该在你的bower.json文件旁边)并添加想要的代理配置

"proxy":"http://<host>:<port>",
"https-proxy":"http://<host>:<port>"