Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 403 Vote(s) - 3.38 Average
  • 1
  • 2
  • 3
  • 4
  • 5
'node' is not recognized as an internal or an external command, operable program or batch file while using phonegap/cordova

#1
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"
Reply

#2
Add a system variable named "node", with value of your node path.
It solves my problem, hope it helps.
Reply

#3
As you're using Windows, installation should automatically edit the %PATH% variable. Therefore, I suspect you simply need to reboot your system after installing.
Reply

#4
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.
Reply

#5
If you install Node using the [windows installer][1], there is nothing you have to do. It adds path to node and npm.

You can also use Windows [setx][2] command for changing system environment variables. No reboot is required. Just logout/login. Or just open a new cmd window, if you want to see the changing there.

setx PATH "%PATH%;C:\Program Files\nodejs"


[1]:

[To see links please register here]

[2]:

[To see links please register here]

Reply

#6
If you already have node installed, your path variable is set up and you suddenly start getting this error; try updating to the latest version.

This worked for me going from 6.9.2 to 6.10.
Reply

#7
Worked for me by running the command prompt **as an administrator**
Reply

#8
**Be aware** that the `Path` is case sensitive. I tried `setx PATH` and it didn't work. In my case it was `setx Path`. Make sure your **CMD run as Administrator**.
```
setx Path "%PATH%;C:\Program Files\nodejs"
```
Now just **restart** your command prompt (or restart the PC) and the `node` command should be available.
Reply

#9
In windows search bar type "enviroment variable" open it and set path

> C:\Program Files\nodejs;

After adding path in system enviroment variable, If problem still occurs then follow steps

- Close cmd and open new cmd, try "node" command.
- For VS code close all windows and reopen then try "node" command.
- If above steps didn't work then restart system.(this one worked for me)

Reply

#10
Also, try to run `nvm on` to turn on the node. Worked for me.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through