Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error initializing Cordova:missing command error in windows phone 8.1

I am working on windows universal apps using cordova. I have updated cordova.js from 3.2.0 to 3.6.3 and when I run the app in windows phone emulator, I am getting this error:

Error initializing cordova:missing command error

Can you please guide me how to solve this error?

Thanks In Advance,

Ajay

like image 929
Ajay kumar Avatar asked Oct 23 '14 17:10

Ajay kumar


1 Answers

It is likely that some cordova related files are missing, particularly plugin files. Removing and adding the plugins again and/or removing and adding the platform should fix this error.

// do this for all plugins, or one at a time, testing in between
cordova plugins remove [plugin-name]
cordova plugins add    [plugin-repo]

// and if that doesn't help, do this
cordova platforms remove [platform]
cordova platforms add    [platform]
like image 183
m59 Avatar answered Nov 18 '22 01:11

m59