Open windows search bar and look for, "Environment Variables", open it and look for "path" variable for current user and if there isn't a path like below, add one.
C:\Users\<your username here>\AppData\Roaming\npm
If it still doesn't work then you probably didn't install NodeJS correctly. Install Node again. Open CMD, type "node" and press Enter. If it gives a response like "Welcome to Node...". There you have it, it will work now.
Looking at the picture you uploaded, I feel like you trying to run your node directly from your sublime console and it not properly install
visit this link https://pawelgrzybek.com/javascript-console-in-sublime-text/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.