【问题标题】:Unable to restore bower packages in VS2017 community editionVS2017社区版无法恢复bower包
【发布时间】:2017-03-20 07:18:46
【问题描述】:

我正在尝试通过 VS2017 社区版中的"manage bower packages" 选项添加一些 Bower 包,如 bootstrap、jquery 等,但它总是失败并显示以下错误消息...

ECMDERR 无法执行“git ls-remote --tags --heads https://github.com/twbs/bootstrap.git",退出代码 #128 致命: 无法访问“https://github.com/twbs/bootstrap.git/”:代理 CONNECT 中止

我已经尝试了以下

a) 安装 git 最新版本

b) 在git bash --- git config --global url."https://".insteadOf git://中运行以下命令

c) 在tools-->Options-->Web package management-->External web tools . C:\Program Files\Git\bin下添加以下内容

全部失败。

请给出答案

【问题讨论】:

  • 你安装的git版本是多少?

标签: git visual-studio bower


【解决方案1】:

我自己也遇到了这个问题,在安装 Git For Windows 并重新启动 Visual Studio 之后,从 Visual Studio 中恢复 Bower 包又可以正常工作了。 YMMV

【讨论】:

    猜你喜欢
    • 2017-10-02
    • 1970-01-01
    • 2017-12-01
    • 2018-12-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多