Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
652 views
in Technique[技术] by (71.8m points)

visual studio - Error: SetSite failed for package [ApacheCordovaToolsPackage]

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.

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

SetSite failed for package [ApacheCordovaToolsPackage]

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The steps in this MSDN forum post worked for me. Reproducing for 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.

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

CD into that path, e.g.,

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

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

vs_enterprise.exe /modify /installselectableitems Javascript

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

Then:

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...