Ubuntu Linux: Netbeans cannot detect Git or installed Cordoba

Following the guide , I installed every necessary package, and they seem to be working fine

$ echo $PATH /usr/local/lib/node_modules/cordova/bin:/home/maxxer/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games $ node -v v0.10.33 $ cordova --version hello: 4.1.2 $ git --version git version 2.1.0 $ which node /usr/bin/node $ which cordova /usr/local/lib/node_modules/cordova/bin/cordova $ which git /usr/bin/git 

However, when I try to create a new HTML5 Cordova application, NB says that I am missing the installation of git or cordova ... I found several errors in NB bugzilla, but none of them apply here.

Forgot to say that I am using NetBeans 8.0.1 on amd64.

+2
source share
1 answer

Thanks to @ladar for helping me, I found out that the culprit really was hi: printed by any cordova command (for example, cordova --version or cordova --help ). I do not know why this originally existed, since I installed the cord using npm install -g cordova and even after npm install -g cordova , the output was always the same.

So, I was looking for a Cordova executed with

 which cordova 

and around line 20:

 // Set this to 1 to enable timestamp collection via addTs(). console.log('hello: '); if (0) { var ts = []; 

Adding // in front of console.log finally made Netbeans work!

Thanks again @ladar for your suggestions

+1
source

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


All Articles