错误:程序包的SetSite失败[ApacheCordovaToolsPackage] [英] Error: SetSite failed for package [ApacheCordovaToolsPackage]

查看:724
本文介绍了错误:程序包的SetSite失败[ApacheCordovaToolsPackage]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了Visual studio 2015和visual studio cordova工具。

I just installed both Visual studio 2015 and visual studio cordova tools. It wrked fine and i was able to create a project with it.

然后我安装了ion cli,突然我得到错误

I then installed ionic cli, and suddenly i am getting the error

SetSite failed for package [ApacheCordovaToolsPackage]

我试过修复Visual studio和cordova工具无济于事。
任何帮助?

I have tried repairing Visual studio and cordova tools to no avail. Any help?

推荐答案

这个MSDN论坛帖子为我工作。正在重现Google可用性:

The steps in this MSDN forum post worked for me. Reproducing for Googleability:


在安装程序缓存中找到Visual Studio 2015的安装程序。

Find the installer for Visual Studio 2015 in your installer cache.



cd /d "%ProgramData%\Package Cache"
dir vs*exe /s /b




找到vs_community.exe,vs_professional.exe或vs_enterprise.exe的路径,路径。

Find the path to vs_community.exe, vs_professional.exe, or vs_enterprise.exe, and copy that path.

(我发现我的 vs_enterprise.exe C:\ProgramData\Package Cache\ {a60a492e-b5eb-4218-a9e6-f38d18a7dbaf} \vs_enterprise.exe )

(I found my vs_enterprise.exe at C:\ProgramData\Package Cache\{a60a492e-b5eb-4218-a9e6-f38d18a7dbaf}\vs_enterprise.exe)

CD到该路径,例如

cd {a60a492e-b5eb-4218-a9e6-f38d18a7dbaf}

使用选项 / modify / installselectableitems Javascript 执行安装程序, / p>

Execute the installer with the options /modify /installselectableitems Javascript, e.g.,

vs_enterprise.exe /modify /installselectableitems Javascript




在Visual Studio安装程序中,选择修改然后更新,而不更改任何功能选择。

In Visual Studio setup, select Modify then Update, without changing any feature selections.

然后:

cd C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
devenv /updateconfiguration
devenv /clearcache

这篇关于错误:程序包的SetSite失败[ApacheCordovaToolsPackage]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆