'cordova' is not recognized as an internal or external command, operable program or batch file.

13,083 views
Skip to first unread message

Tom Borges

unread,
Jul 7, 2013, 9:37:17 PM7/7/13
to phon...@googlegroups.com
I have all Ant, SDK and JDK already in my environment variables but I still get this, then I can't follow the getting started guide on http://docs.phonegap.com/en/2.9.0/guide_cli_index.md.html#The%20Cordova%20Command-line%20Interface
I'm stuck at this :(

Aaron Bery

unread,
Sep 15, 2013, 3:32:03 PM9/15/13
to phon...@googlegroups.com
I had the same issue so i uninstalled node, reinstalled and then installed cordova via the command line 

npm install -g cordova

open a new cmd and type cordova -v and if it is recognized you get the version

svkirans

unread,
Sep 16, 2013, 12:20:47 AM9/16/13
to phon...@googlegroups.com
You need to install nodejs first and then install Cordova. The below has detailed instructions on setting up a Cordova 3 android project.
http://codingsquare.blogspot.in/2013/08/creating-cordova-3-android-project.html

Pierre Zenobble

unread,
Feb 8, 2014, 5:12:23 AM2/8/14
to phon...@googlegroups.com
Thank you so much ! I had the same issue and i needed to uninstall and reinstall node.js. 

Now, everythings works like a charm. :-)
Message has been deleted

Trang Thảo Nguyên

unread,
Mar 12, 2014, 3:40:31 AM3/12/14
to phon...@googlegroups.com
Thanks Aaron, it works! :)

Reg edit

unread,
Oct 14, 2014, 3:13:09 PM10/14/14
to phon...@googlegroups.com
It works! Thank you so much, i driven crazy


Le dimanche 15 septembre 2013 21:32:03 UTC+2, Aaron Bery a écrit :

Wahaab Jalal Bhatti

unread,
Jun 23, 2015, 10:56:03 AM6/23/15
to phon...@googlegroups.com, tombo...@gmail.com
Check if the configuration is broken or not. the update might have installed it in the wrong place.

First check: `npm config get prefix`

In my case It wasn't set to /usr/local but in /usr/Roaming.

So to fix it, use:  `npm config set prefix`

Problem solved! :)

Wahaab Jalal Bhatti

unread,
Jun 23, 2015, 10:56:04 AM6/23/15
to phon...@googlegroups.com, tombo...@gmail.com
Check if the configuration is broken or not. the update might have installed it in the wrong place.

First check: `npm config get prefix`

In my case It wasn't set to /usr/local but in /usr/Roaming.

So to fix it, use:  `npm config set prefix`

Problem solved! :)

On Monday, July 8, 2013 at 3:37:17 AM UTC+2, Tom Borges wrote:
Reply all
Reply to author
Forward
0 new messages