我有一个没有互联网访问权限的构建服务器,我希望能够执行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
进入源代码控制,但我真的不愿意。
答案 0 :(得分:1)
运行bower install --offline。这迫使它只使用缓存。