Open In App

How to resolve ‘node’ is not recognized as an internal or external command error after installing Node.js ?

Last Updated : 10 Jul, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

There are many different ways to install node.js on a computer. The simplest method to verify whether node.js has been properly installed in your computer is simply type node-v in the command prompt or Windows PowerShell.

But many times, it happens, most commonly if you’re a beginner, the command prompt prints the output something like this:

'node' is not recognized as an internal or external command,
operable program or batch file.

This is the most common error and it is very simple to resolve this. It might be a case that the user might have properly installed node from the official node website. But sometimes, the reason is that the path variable is not defined in your system. So to properly define a path variable and resolve this error, follow these simple steps:

  1. Open the Environment Variables option in your Control Panel. (Go to Control Panel -> System and Security ->System -> Advanced System Settings-> Environment Variables ->User Variables or System Variables.)
  2. Select the variable named Path. A dialogue box named Edit user variable will appear. In the variable value option inside that dialogue box, paste the complete path of the location where node.js is installed in your system.Then click on OK.
  3. Restart the command prompt again and now verify by typing node-v in the command prompt. It will now display the version of the node which you’ve installed from the internet .

Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads