Unable to build Apache Cordova Project in Visual Studio 2015 Professional

Hi

When i create new Apache Cordova project in VS2015 Pro, i cant build the project.

I get an error saying that:

Error BLD401 Error : BLD00401 : Could not find module 'C:\Users\Bruker-NRX\AppData\Roaming\npm\node_modules\vs-tac\app.js'. Please Go to Tools --> Options --> Tools for Apache Cordova --> Cordova Tools --> Clear Cordova Cache and try building again. AngularJsGoogleMap 1 Build
error on build


This error is described here on anothe articale, but the solution wont work in my case:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/4f97d8c5-6069-49ee-a065-283741fd483f/unable-to-build-my-first-cordova-app-in-vs-2015?forum=ToolsForApacheCordova

And on MSDN how to configure Apache Cordova Tools:
https://msdn.microsoft.com/library/dn771551%20(v=vs.140).aspx#vstac

he first thing happen when i create Apache Cordova is the error iam getting explained above.

Then i install npm by navigating in command prompt to my vs-tac folder located in folder(e:\Visual Studio\Programsfiles\Common7\IDE\Extensions\ApacheCordovaTools\Packages\vs-tac\ )

And run "npm -g install"

But i get an error , se pic:
1
Some how on google i find out that this issue is because of missing package.json file in vs-tac folder.
So i just run npm init
And after that i re-run npm -g install (succsessfully)
2
And then i clear the cordova cache and restart the VS2015......But still iam getting the same error....

Error shown in VS2015:
v
And the output looks like:
g
and i cant find any npm-debug-log file in my vs-tac folder....???
AdnanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Randy DownsOWNERCommented:
Maybe this will help.


    Close all VS instances
    cd %appdata%\Local\Microsoft\Phone Tools”
    rename CoreCon folder
    Launch VS again.

or this
npm install -g cordova
npm install -g "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac"

Open in new window



C:\Temp>git clone https://github.com/phonegap/phonegap-plugin-fast-canvas.git

Open in new window


From project folder and run

cordova plugin add C:\Temp\phonegap-plugin-fast-canvas\

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AdnanAuthor Commented:
I've requested that this question be deleted for the following reason:

deleting abbonded question
0
Randy DownsOWNERCommented:
What was the solution. Did my answer help at all?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.