Problem in installtion in nodejs

node is not run in vs code but same code is run in cmd

node : The term ‘node’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + node main.js + ~~~~ + CategoryInfo : ObjectNotFound: (node:String) [], Comma ndNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

this is the error of our in vs code

Hi @gk1293123,

Maybe we followed these scenarios

  • Missing Node.js software
  • Wrongly updated Windows environment path
  • Installed in the wrong path
  • Old version of Node.js software
  • Please make sure you are in the right directory
  • Open a new terminal and install node there in VScode

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.