‘node’ is not recognized as an internal or external command is a fairly common error. It often happens when you install NodeJs with errors that lead to your system’s inability to recognize the operations you use on NodeJs. You can reinstall NodeJs or set environment variables to solve the problem.
What causes node’ is not recognized as an internal or external command?
After installing NodeJs, the programmer will check if it has been installed successfully with the
node -v command on the cmd. Then an error like this may appear:
'node' is not recognized as an internal or external command, operable program or batch file.
The cause may be that you have installed NodeJs incorrectly, or the path variable needs to be defined in your environment variable settings.
How to fix this error?
To install NodeJs properly, go to the official Node.js page and download it for windows.
Open the installation file and click the next button until your NodeJs are successfully installed.
Finally, open your cmd and run command
node -v to check
Set Environment Variables
In the windows search bar, type: Environment
Click on Environment Variables
Then select PATH and paste it the path where NodeJs is installed
Click OK to save. Finally, open your cmd and run command
node -v to check.
Hopefully, the above solutions will help you fix the error ‘node’ is not recognized as an internal or external command. If you have any questions, please leave us a comment.
After studying and researching, I have acquired the necessary programming skills of a web programmer. In addition to HTML, Css, Bootstrap has some popular libraries such as reactJS and NodeJS. It is enough for me when designing from front-end to back-end.