2016-11-25 30 views
0

安装我无法在Visual Studio 2013年安装NuGet包NPM 3.5.2它失败,错误 - Could not find a part of the pathNPM 3.5.2 NuGet包未能在VS2013

 
Attempting to resolve dependency 'Node.js (≥ 0.12.7)'. 
Attempting to resolve dependency 'NoGit (≥ 0.1.0)'. 
Installing 'Npm 3.5.2'. 
Install failed. Rolling back... 
Could not find a part of the path 'C:\Users\xxxxx\AppData\Local\Temp\NuGetScratch\92236435-c19e-4785-96ed-e1434682490e\stzkys2q.h4q\node_modules\npm\node_modules\fstream-npm\node_modules\fstream-ignore\node_modules\minimatch\node_modules\brace-expansion\node_modules\balanced-match\.npmignore'. 

回答

0

我想你撞到窗户最大路径长度是260个字符: 这解释: Why does the 260 character path length limit exist in Windows?

+0

不,我猜这是一个不同的问题。我试过甚至安装在c:\ abc \文件夹中。我仍然得到同样的错误。 – user7193637

+0

我已成功将该包添加到vs2013解决方案,但前提是我将项目放在较短的路径长度中。我可以得到这个错误,如果我使用你的用户路径下的默认路径太长(如果你使用vs2015它甚至会告诉你这是事实)。 –