我正在浏览一些ASP.NET教程,我遇到了一个错误,我不知道如何解决。我刚刚添加了一个Bower pacakge(?)和Visual Studio(Enterprise 2015),它将其置于依赖关系分支之下。在那之下是Bower分支,并且包出现。他们都依赖和鲍尔说“ - 没有安装”。我右键单击并选择“恢复”选项。 Viusal Studio工作了一段时间,然后说错误发生了。出现在输出窗口中的以下错误: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
"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,但我知道我不应该有它安装在我的工作站。任何人都知道发生了什么事?
你可以尝试移动你的项目更接近你的驱动器的根?我怀疑你正在遇到MAX_PATH错误。 –
我检查了我没有接近MAX_PATH限制的地方。感谢您的建议。 – Frecklefoot
不,它不是你的项目的最大路径,但npm递归嵌套依赖关系,并经常在包恢复时遇到最大路径错误。你可以请尝试移动你的项目,比如c:\ a \然后再试一次吗? –