Error: SetSite failed for package [ApacheCordovaToolsPackage]
Error: SetSite failed for package [ApacheCordovaToolsPackage]
我刚刚安装了 Visual studio 2015 和 visual studio cordova 工具。
它运行良好,我能够用它创建一个项目。
然后我安装了 ionic cli,突然出现错误
SetSite failed for package [ApacheCordovaToolsPackage]
我已经尝试修复 Visual studio 和 cordova 工具但无济于事。
有帮助吗?
this MSDN forum post 中的步骤对我有用。为 Googleability 重现:
Find the installer for Visual Studio 2015 in your installer cache.
cd /d "%ProgramData%\Package Cache"
dir vs*exe /s /b
Find the path to vs_community.exe, vs_professional.exe, or vs_enterprise.exe, and copy that path.
(我在 C:\ProgramData\Package Cache\{a60a492e-b5eb-4218-a9e6-f38d18a7dbaf}\vs_enterprise.exe
找到了我的 vs_enterprise.exe
)
CD 进入该路径,例如,
cd {a60a492e-b5eb-4218-a9e6-f38d18a7dbaf}
使用选项 /modify /installselectableitems Javascript
执行安装程序,例如,
vs_enterprise.exe /modify /installselectableitems Javascript
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
Error adb.exe when running Visual Studio 2015 RC 中的解决方案对我有用。
简而言之:
删除此文件夹:C:\Users[用户名]\appdata\local\microsoft\VisualStudio.0\ComponentModelCache
然后打开一个新项目,用VS重建文件夹。
我刚刚安装了 Visual studio 2015 和 visual studio cordova 工具。 它运行良好,我能够用它创建一个项目。
然后我安装了 ionic cli,突然出现错误
SetSite failed for package [ApacheCordovaToolsPackage]
我已经尝试修复 Visual studio 和 cordova 工具但无济于事。 有帮助吗?
this MSDN forum post 中的步骤对我有用。为 Googleability 重现:
Find the installer for Visual Studio 2015 in your installer cache.
cd /d "%ProgramData%\Package Cache"
dir vs*exe /s /b
Find the path to vs_community.exe, vs_professional.exe, or vs_enterprise.exe, and copy that path.
(我在 C:\ProgramData\Package Cache\{a60a492e-b5eb-4218-a9e6-f38d18a7dbaf}\vs_enterprise.exe
找到了我的 vs_enterprise.exe
)
CD 进入该路径,例如,
cd {a60a492e-b5eb-4218-a9e6-f38d18a7dbaf}
使用选项 /modify /installselectableitems Javascript
执行安装程序,例如,
vs_enterprise.exe /modify /installselectableitems Javascript
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
Error adb.exe when running Visual Studio 2015 RC 中的解决方案对我有用。
简而言之:
删除此文件夹:C:\Users[用户名]\appdata\local\microsoft\VisualStudio.0\ComponentModelCache
然后打开一个新项目,用VS重建文件夹。