Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'node' is not recognized as an internal or an external command, operable program or batch file while using phonegap/cordova

I am using phonegap/cordova.

Everthing is installed propelry i.e cordova, phonegap, ant,sdk,jdk.

But now it says "node is not recogzed as an internal or external command"

like image 819
Meghana Avatar asked May 01 '14 17:05

Meghana


People also ask

How do you fix node is not recognized as an internal or external command operable program or batch file?

Click on the edit system environment variables, a window will open where you have to click on Environment Variables. The Environment Variables window will open where you have to select or double click on the variable Path. Now paste the complete path where Node. js was installed.

How do I check if node is installed in CMD?

Run -> Type cmd -> Command Prompt windows appear -> type node --version . You should see version number.


1 Answers

In Windows, you need to set node.js folder path into system variables or user variables.

1) open Control Panel -> System and Security -> System -> Advanced System Settings -> Environment Variables

2) in "User variables" or "System variables" find variable PATH and add node.js folder path as value. Usually it is C:\Program Files\nodejs;. If variable doesn't exists, create it.

3) Restart your IDE or computer.

It is useful add also "npm" and "Git" paths as variable, separated by semicolon.

like image 136
webmato Avatar answered Sep 19 '22 10:09

webmato