Netbeans cannot find Cordoba or Git in your path

I just install the latest netbeans 7.4 RC1, I got a page with the error "Netbeans cannot find Cordova or Git in your path, please install Cordova or Git". In fact, I really installed both Cordova and Git.

I follow the step on this youtube,

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

but it still doesn't allow me to open any HTML 5 cordova project.

Is this what I did not notice?

+6
source share
13 answers

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

Go to the command line. Try entering:

git --version cordova --version 

If you get an error "command not found", you have a problem with your installation. Most likely you need elements added to your path variable. In my case, it was C: \ Users \ Chris \ AppData \ Local \ GitHub \ PortableGit_015aa71ef18c047ce8509ffb2f9e4bb0e3e73f13 \ Bin; C: \ Users \ Chris \ AppData \ Roaming \ NPM

for Cordoba and Git.

+15
source

I think the logic of the error messages is broken, so this is misleading. In my case, git was not in PATH, but there was a cord. After verifying that git has been added to PATH, this is fixed.

+3
source

Had the same 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 changed this cordova.cmd file to just return the fake version:

@echo 3.0.1

this allows me to go through the wizard step, where it is checked if Cordoba is installed. After that, I revert the changes to cordova.cmd and finished the new project wizard. And it worked, and I can even build and run it on an Android device. This "workaround" works until I close the IDE. Thus, the problem is only at the beginning of the check if Cordoba is installed

At the command line

 where cordova 

to find the place where it is (usually in C: \ Users \\ AppData \ Roaming \ npm)

+2
source

You should use Cordova version 3.0.10 instead of 3.1 Netbeans doesn't seem to work with Cordova 3.1

enter

 npm install -g cordova@3.0.10 

and restart Netbeans.

+2
source

Be sure to check if there are any attachments in the environment variables. I made this mistake and it caused me a lot of headache :)

Not OK: "C:\Program Files\nodejs\";C:\Program Files (x86)\Git\bin

Good: C:\Program Files\nodejs\;C:\Program Files (x86)\Git\bin

+1
source

If you are installing Netbeans 8 on Ubuntu 14.04, you must enter

sudo ln -s / usr / bin / nodejs / usr / bin / node

then follow http://cordova.apache.org/docs/en/edge/guide_cli_index.md.html#The%20Command-line%20Interface

+1
source

If someone is using Netbeans 8.0, this is the tutorial you need to follow presented on the Netbeans website: https://netbeans.org/kb/docs/webclient/cordova-gettingstarted.html

Happy coding with a corridor ... !!!

0
source

I solved this problem with installing GIT at this link:

http://git-scm.com/book/en/Getting-Started-First-Time-Git-Setup

hope this helps someone.

0
source

I had the same problem. I found one solution on another site.
Try this: reinstall git and select the option * Use git and additional Unix tools from the Windows command line.

0
source
  • Just follow the installation process as described in the phonegap (cordova) documentation, but make sure that when you installed git you checked the option using git and additional Unix tools from the Windows command line after that, to go to check that C: \ Program Files \ nodejs \; C: \ Program Files (x86) \ Git \ bin exists in your path environment variable, as shrty said. You can check if node.js is installed using node --version and git on git --version

  • Get the path where npm -g cordova is installed, install your Cordova. It produces something like "} (current: {" node ":" 0.10.36 "," npm ":" 1.4.28 "}) C: \ Users \ kanu \ AppData \ Roaming \ npm \ cordova →: if you go to

C: \ Users \ kanu \ AppData \ Roaming \ npm \ directory you will find cordova.exe here. What you need to do is add: C: \ Users \ magezi \ AppData \ Roaming \ npm \ in the environment after git.

After that, change the directory in which cordova.exe exists for me, it was in the C: \ Users \ kanu \ AppData \ Roaming \ npm \ folder and from there you can test the installation of the cordova with the cordova -version command (it will return the version)

open netbeans and try creating a cordova app. He should work

0
source

It took me a long time to connect the Cordova plugin to my setup (Ubuntu 15.04 | Netbeans 8.0.2), so I put my experience on my blog:

http://www.peredur.net/2015/09/netbeans-8-0-cordova-projects/

I hope this helps other people.

0
source

I had almost the same problem using NetBeans 8.1 on Windows 7. With the exception of NetBeans, Cordoba (only) could not be found on my PATH, but Cordoba was installed on PATH as well. So, as everyone suggested, I tested the versions.

 C:\>git --version git version 2.7.0.windows.2 C:\>cordova --version ? May Cordova anonymously report usage statistics to improve the tool over time? No You have been opted out of telemetry. To change this, run: cordova telemetry on. 6.2.0 

Strange, --version asked for user input, which I gave. I reopened Netbeans to find that he can now magically see the installation of the cordova. Come to find out that my problem was that Netbeans could not see that it was installed because Cordoba was forcing the user to enter the first attempt. Cordoba was recently installed and never ran.

0
source

I had the same problem on Linux and I was working with a custom $ PATH. What ultimately decided to set the $ PATH variable in netbeans.conf is in $ NETBEANS_PATH / etc / netbeans.conf

I added these three lines

 export ANDROID_HOME=/home/paul/Android/Sdk PATH="$PATH:/home/paul/opt/node-v4.4.7-linux-x64/bin/:/home/paul/Android/Sdk/tools" export PATH 

Subsequently, I was finally able to customize any Cordoba project :)

0
source

Source: https://habr.com/ru/post/954866/


All Articles