Bower 卡在 OSX
Bower gets stuck in OSX
我正在尝试在 OSX el-captain
中使用 Bower 安装 angularjs
。当我 运行 bower 安装时,它输出几行,如:
bower cached git://github.com/twbs/bootstrap.git#3.3.6
bower validate 3.3.6 against git://github.com/twbs/bootstrap.git#*
然后卡住了。我也尝试了详细选项,希望我能获得更多信息,但输出保持不变。
知道卡住的原因吗??
谢谢。
我有同样的问题,试试这个修复,它将使用 https 方法而不是 git 方法。
git config --global url.https://.insteadOf git://
希望它能解决您的问题。
您的系统在通过 bower 从 git 下载软件包时可能会阻塞,因为代理设置很少。所以在你的 .bowerrc 文件中你需要提供代理配置。
这篇link可能会对您有所帮助!
bower behind a proxy
这里是示例 .bowerrc 文件:
{
"directory": "bower_components",
"proxy":"your proxy http url",
"https-proxy":"http://<username>:<password>@<your proxy>"
}
以上设置中您需要替换成您的信息。
我正在尝试在 OSX el-captain
中使用 Bower 安装 angularjs
。当我 运行 bower 安装时,它输出几行,如:
bower cached git://github.com/twbs/bootstrap.git#3.3.6
bower validate 3.3.6 against git://github.com/twbs/bootstrap.git#*
然后卡住了。我也尝试了详细选项,希望我能获得更多信息,但输出保持不变。
知道卡住的原因吗??
谢谢。
我有同样的问题,试试这个修复,它将使用 https 方法而不是 git 方法。
git config --global url.https://.insteadOf git://
希望它能解决您的问题。
您的系统在通过 bower 从 git 下载软件包时可能会阻塞,因为代理设置很少。所以在你的 .bowerrc 文件中你需要提供代理配置。
这篇link可能会对您有所帮助! bower behind a proxy
这里是示例 .bowerrc 文件:
{
"directory": "bower_components",
"proxy":"your proxy http url",
"https-proxy":"http://<username>:<password>@<your proxy>"
}
以上设置中您需要替换成您的信息。