Categories
JavaScript Answers

How to fix the “‘node’ is not recognized as an internal or external command” error in Windows?

Spread the love

Sometimes, we want to fix the "’node’ is not recognized as an internal or external command" error in Windows.

In this article, we’ll look at how to fix the "’node’ is not recognized as an internal or external command" error in Windows.

How to fix the "’node’ is not recognized as an internal or external command" error in Windows?

To fix the "’node’ is not recognized as an internal or external command" error in Windows, we can add the Node.js executable path to the PATH environment variable.

To do this, we run

SET PATH=C:\Program Files\Nodejs;%PATH%

to add C:\Program Files\Nodejs directory to the PATH as another entry in the list of values.

Conclusion

To fix the "’node’ is not recognized as an internal or external command" error in Windows, we can add the Node.js executable path to the PATH environment variable.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

One reply on “How to fix the “‘node’ is not recognized as an internal or external command” error in Windows?”

Hi, Thanks for the information. After downloading nodeJS to my laptop, I typed node -v in the command prompt and got the “‘node’ is not recognized as an internal or external command” error in Windows. I came across this website and followed the instructions and typed SET PATH=C:\Program Files\Nodejs;%PATH%
This has fixed the error i was getting.
I typed node -v in the command prompt and i get no error now and it tells me I have v.16.17.0 running.

Thanks for the info.

Leave a Reply

Your email address will not be published. Required fields are marked *