如何在Windows上查找和复制Bower本地缓存

时间:2016-08-15 15:19:10

标签: bower local bower-install

我有一个没有互联网访问权限的构建服务器,我希望能够执行bower install

我尝试将c:\users\<TheAccountTheBuildServerRunsAs>\AppData\Local\bower复制到我的构建服务器(我使用npm缓存(已成功),但它一直尝试访问互联网:

bower ECMDERR       Failed to execute "git ls-remote --tags --heads
https://github.com/stefanpenner/ember-jj-abrams-resolver.git", 
exit code of #128 fatal: unable to access 'https://github.com/stefanpenner/ember-jj-abrams-resolver.git/': 
Received HTTP code 403 from proxy after CONNECT

Additional error details:
fatal: unable to access 'https://github.com/stefanpenner/ember-jj-abrams-resolver.git/': Received HTTP code 403 from proxy after CONNECT

我使用了错误的流程吗?

作为一种解决方法,我必须检查我的bower_components进入源代码控制,但我真的不愿意。

1 个答案:

答案 0 :(得分:1)

运行bower install --offline。这迫使它只使用缓存。