Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans Cannot Find Cordova or Git on your path

Tags:

netbeans-7

I just install the latest netbeans 7.4 RC1 , i got the Error page "Netbeans Cannot Find Cordova or Git on your path, Please install Cordova or Git". In fact, i actually did install both cordova and Git.

I Do follow the step on this youtube ,

https://www.youtube.com/watch?v=Gt4uHSiO-00

but it is still not allow me to open any HTML 5 cordova project.

Is that any steps i left out ?

like image 585
abc cba Avatar asked Sep 29 '13 05:09

abc cba


3 Answers

I had the exact same problem. I found this bug: https://netbeans.org/bugzilla/show_bug.cgi?id=234870

Go to the command prompt. Try typing:

git --version    
cordova --version

If you get a "command not found" error, you have an issue with your installation. More than likely you need the items added to your path variable. In my case, that was C:\Users\Chris\AppData\Local\GitHub\PortableGit_015aa71ef18c047ce8509ffb2f9e4bb0e3e73f13\bin;C:\Users\Chris\AppData\Roaming\npm

for both Cordova and Git.

like image 146
Christopher Matthew Bodley Avatar answered Nov 23 '22 17:11

Christopher Matthew Bodley


I think the error message logic is broken, that's why this is misleading. In my case, git wasn't in the PATH, but cordova was. Making sure git was added to the PATH, fixed this.

like image 34
Rolf Kaiser Avatar answered Nov 23 '22 18:11

Rolf Kaiser


Had the same exact problem, looking here https://netbeans.org/bugzilla/show_bug.cgi?id=234870 this answer solved my problem:

On Windows, NetBeans tries to run "cordova.cmd -v" to check if Cordova is ready. So I modified this cordova.cmd file to simply return fake version:

@echo 3.0.1

this allows me to get through the wizard step, where is being checked if Cordova is installed. After that, I revert changes in cordova.cmd and finished new project wizard. And it worked and I can even build and start it on Android device. This "workaround" works until I close IDE. So the problem is only at the beginning in checking if Cordova is installed

On command line run

where cordova

to get where it is located (usually in C:\Users\\AppData\Roaming\npm)

like image 30
maxidirienzo Avatar answered Nov 23 '22 18:11

maxidirienzo