我今天升级到TACO 8.1,清除了Tools > Options中的Cordova缓存,克隆了我的git项目,现在我在为Android编译时得到了这个错误:
1> Executing "before_platform_add" hook for all plugins.
1> No version supplied. Retrieving version from config.xml...
1> Failed to fetch platform android
1> Probably this is either a connection problem, or platform spec is incorrect.
1> Check your connection and platform name/version/URL.
1>MDAVSCLI : error : tunneling socket could not be established, cause=connect ECONNREFUSED有什么想法吗?

发布于 2016-04-19 11:39:53
哇,我刚解决了。忍受我吧。This post和this post让我走上了正确的轨道。
我打开一个命令行并键入以下命令,以检查Visual使用的npm命令的配置:
cd C:\Users\Guillaume\AppData\Roaming\Microsoft\VisualStudio\MDA\vs-npm
npm config list我得到的是:

如您所见,指定了代理URL (http://127.0.0.1:8888/)。所以我用这个命令删除了它,它解决了这个问题:
npm config rm proxy我猜Fiddler一定是在Visual首次安装或配置npm时运行的.
注意:在构建时最好使用当前的代理配置。而且,当从Visual清除Cordova的缓存时,应该重置该设置.
https://stackoverflow.com/questions/36697716
复制相似问题