Visual Studio Bower 错误
Visual Studio Bower error
我正在学习一些 ASP.NET 教程,但我遇到了一个我不知道如何解决的错误。我刚刚添加了一个 Bower pacakge(?) 和 Visual Studio (Enterprise 2015) 将它放在 Dependencies 分支下。在那下面是 Bower 分支,包出现在其中。 Dependencies 和 Bower 在它们之后都说“- not installed”。我右击并选择了 "Restore" 选项。 Viusal Studio 工作了一段时间,然后说发生错误。输出中出现以下错误 window:
PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\git
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\Bower.cmd" install --force-latest
bower underscore#~1.83 not-cached git://github.com/jashkenas/underscore.git#~1.83
bower underscore#~1.83 resolve git://github.com/jashkenas/underscore.git#~1.83
bower underscore#~1.83 ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/jashkenas/underscore.git", exit code of #-532462766
我不是很熟悉 Git,但我知道我不应该在我的工作站上安装它。有人知道怎么回事吗?
我相信 Bower 使用 Git 客户端使用包 bower.json 文件中的条目直接从 GitHub 中提取包。
具体到您的问题,Git(因此 bower)由于防火墙问题无法连接到 GitHub。类似问题
您可以设置全局 git 变量(例如 git config --global xxx)来设置代理等,希望能解决这个问题。
根据错误,您的 Git 客户端本地安装在 C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\git
我正在学习一些 ASP.NET 教程,但我遇到了一个我不知道如何解决的错误。我刚刚添加了一个 Bower pacakge(?) 和 Visual Studio (Enterprise 2015) 将它放在 Dependencies 分支下。在那下面是 Bower 分支,包出现在其中。 Dependencies 和 Bower 在它们之后都说“- not installed”。我右击并选择了 "Restore" 选项。 Viusal Studio 工作了一段时间,然后说发生错误。输出中出现以下错误 window:
PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\git
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\Bower.cmd" install --force-latest
bower underscore#~1.83 not-cached git://github.com/jashkenas/underscore.git#~1.83
bower underscore#~1.83 resolve git://github.com/jashkenas/underscore.git#~1.83
bower underscore#~1.83 ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/jashkenas/underscore.git", exit code of #-532462766
我不是很熟悉 Git,但我知道我不应该在我的工作站上安装它。有人知道怎么回事吗?
我相信 Bower 使用 Git 客户端使用包 bower.json 文件中的条目直接从 GitHub 中提取包。
具体到您的问题,Git(因此 bower)由于防火墙问题无法连接到 GitHub。类似问题
您可以设置全局 git 变量(例如 git config --global xxx)来设置代理等,希望能解决这个问题。
根据错误,您的 Git 客户端本地安装在 C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\git