node is not recognized as an internal or external command but is in PATH

The nodejs directory in your PATH isn't recognized because there's a space before the semicolon, so Windows is looking for a directory with a space at the end of the name, which doesn't exist.


Error: 'node' is not recognized as an internal or external command

The problem is may be the node is not installed on the machine in which the application is running.

Then install it and set the environment variable for nodejs.

Or

One more reason can be the nodejs path not set in the environment variable.

Check with the following - open Control Panel -> System and Security -> System -> Advanced System Settings -> Environment Variables -> Path

the nodejs path should be available here. If not available then add the following:

C:\Program Files (x86)\nodejs OR C:\Program Files\nodejs

Now Re-Run the application and the Error got resolved.


;C:\Program Files\nodejs\

Slash after \nodejs\ worked for me

Tags:

Node.Js