今天我升级到 Visual Studio 2015 Update 2,包括 TACO Update 8。当我尝试构建时,它失败了。在详细的错误日志中,我看到(在其他人旁边):
Installing npm 2.14.9. This could take a few minutes... Failed : The remote server returned an error : (407) Proxy Authentication Required.
我认为这是因为 TACO 现在自己检测代理,但对于凭据这是不可能的。因此我禁用了自动代理检测以及 NodeJS 的沙盒版本。此外,我清除了 Cordova 缓存。
但是构建仍然失败。奇怪的是它仍在尝试安装 npm 2.14.9。我现在得到:
Failed: The specified path, file name, or bot are too long. The fully qualified name must be less than 260 characters, and the directory name must be less than 248 characters,
我假设这会发生我的 %APPDATA% 目录是放置在网络共享上的漫游配置文件的一部分。因此,APPDATA 变量的内容长度为 82 个字符。
因此,我通常在 npm 中使用前缀 c:\npm,它工作得很好。但不幸的是,TACO 忽略了它......
所以我的问题是:
最后:
最佳答案
是的!!我终于找到了解决方案。原来导致问题的路径在:
"C:\Users\my_very_very_very_very_long_username\AppData"
所以我根据这篇文章通过移动我的 AppData 文件夹来修复它:
http://www.tweaklibrary.com/System/Application-Path/71/Change-default-location-of-the-%E2%80%9CApplication-Data%E2%80%9D-folder/10471/
重新启动,然后它工作。
关于proxy - 升级到 Visual Studio 2015 Update 2/TACO Update 8 后无法构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36696597/