Git 鲍尔在VS 2015中失败了
上下文:Git 鲍尔在VS 2015中失败了,git,visual-studio,bower,Git,Visual Studio,Bower,上下文: 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 "
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 jquery-validation-unobtrusive#* not-cached https://github.com/aspnet/jquery-validation-unobtrusive.git#*
bower jquery-validation-unobtrusive#* resolve https://github.com/aspnet/jquery-validation-unobtrusive.git#*
bower modernizr#* not-cached https://github.com/Modernizr/Modernizr.git#*
bower modernizr#* resolve https://github.com/Modernizr/Modernizr.git#*
bower bootstrap#* not-cached https://github.com/twbs/bootstrap.git#*
bower bootstrap#* resolve https://github.com/twbs/bootstrap.git#*
bower jquery-validation-unobtrusive#* checkout v3.2.6
bower modernizr#* checkout v3.3.1
bower bootstrap#* checkout v3.3.6
bower jquery-validation-unobtrusive#* ECMDERR Failed to execute "git clone https://github.com/aspnet/jquery-validation-unobtrusive.git -b v3.2.6 --progress . --depth 1", exit code of #-532462766
我试图在VS 2015更新2 ASP.NET 4.6项目中使用bower。Bower已通过项目下的npm成功安装(?)。创建保存bower.json后,会出现与git相关的错误消息。(见附件)
注意:
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 jquery-validation-unobtrusive#* not-cached https://github.com/aspnet/jquery-validation-unobtrusive.git#*
bower jquery-validation-unobtrusive#* resolve https://github.com/aspnet/jquery-validation-unobtrusive.git#*
bower modernizr#* not-cached https://github.com/Modernizr/Modernizr.git#*
bower modernizr#* resolve https://github.com/Modernizr/Modernizr.git#*
bower bootstrap#* not-cached https://github.com/twbs/bootstrap.git#*
bower bootstrap#* resolve https://github.com/twbs/bootstrap.git#*
bower jquery-validation-unobtrusive#* checkout v3.2.6
bower modernizr#* checkout v3.3.1
bower bootstrap#* checkout v3.3.6
bower jquery-validation-unobtrusive#* ECMDERR Failed to execute "git clone https://github.com/aspnet/jquery-validation-unobtrusive.git -b v3.2.6 --progress . --depth 1", exit code of #-532462766
这不是协议更改问题(git://->https://)协议已经是https。
问题:
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 jquery-validation-unobtrusive#* not-cached https://github.com/aspnet/jquery-validation-unobtrusive.git#*
bower jquery-validation-unobtrusive#* resolve https://github.com/aspnet/jquery-validation-unobtrusive.git#*
bower modernizr#* not-cached https://github.com/Modernizr/Modernizr.git#*
bower modernizr#* resolve https://github.com/Modernizr/Modernizr.git#*
bower bootstrap#* not-cached https://github.com/twbs/bootstrap.git#*
bower bootstrap#* resolve https://github.com/twbs/bootstrap.git#*
bower jquery-validation-unobtrusive#* checkout v3.2.6
bower modernizr#* checkout v3.3.1
bower bootstrap#* checkout v3.3.6
bower jquery-validation-unobtrusive#* ECMDERR Failed to execute "git clone https://github.com/aspnet/jquery-validation-unobtrusive.git -b v3.2.6 --progress . --depth 1", exit code of #-532462766
如何配置bower以使用VS 2015 ASP Web应用程序
鲍尔输出展品:
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 jquery-validation-unobtrusive#* not-cached https://github.com/aspnet/jquery-validation-unobtrusive.git#*
bower jquery-validation-unobtrusive#* resolve https://github.com/aspnet/jquery-validation-unobtrusive.git#*
bower modernizr#* not-cached https://github.com/Modernizr/Modernizr.git#*
bower modernizr#* resolve https://github.com/Modernizr/Modernizr.git#*
bower bootstrap#* not-cached https://github.com/twbs/bootstrap.git#*
bower bootstrap#* resolve https://github.com/twbs/bootstrap.git#*
bower jquery-validation-unobtrusive#* checkout v3.2.6
bower modernizr#* checkout v3.3.1
bower bootstrap#* checkout v3.3.6
bower jquery-validation-unobtrusive#* ECMDERR Failed to execute "git clone https://github.com/aspnet/jquery-validation-unobtrusive.git -b v3.2.6 --progress . --depth 1", exit code of #-532462766
确保该目录中存在名为“.bowerrc”的bower.json文件 其内容应为: { “目录”:“wwwroot/lib” }
这帮我修好了!:) 尝试更新git版本(),只需下载最新的二进制文件,确保VS已关闭,然后安装 安装时在MinTTY上选择Windows控制台(未尝试其他方法) 然后启动VS并恢复bower包
这帮助我在安装ASP.NET MVC 6样板文件时解决了与您相同的错误(在VS 2015 Enterprise+ASP.NET Core RC1上)不知道为什么会发生这种情况,但我就是这样解决的:
- 从安装独立Git
- 打开bash并执行
git-config——全局url。https://github.com/.insteadOf git://github.com/
您好,您正在创建bower.json文件吗?是的。这就是你看到鲍尔输出的原因。谢谢。这条线存在,导演也存在。