Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The term 'node' is not recognized as the name of a cmdlet, function, script file, or operable program

I'm getting this error while running node in my VS Code terminal besides I tried to run the same thing in CMD and it worked there but not in VS Code terminal: enter image description here

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
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (node:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
like image 449
SujeetYT Avatar asked Jan 29 '20 18:01

SujeetYT


People also ask

How do you fix the term npm is not recognized as the name of a cmdlet function script file or operable program?

The error “npm is not recognized as an internal or external command” error may occur because either the npm is not installed or it is not added to the windows path. To resolve this error, the first solution is to install Node. js on Windows as Node. js is equipped with npm by default.

Why is node not recognized in Visual Studio code?

You must click the Kill Terminal button (highlighted) and then restart VS Code and node will start working again. Best on making a change of system environment variable Path is restarting Windows to make sure that really all processes make use of the modified Path variable.


1 Answers

What worked for me was : open Visual Studio Code -> Terminal -> New Terminal

Everything else I tried didn't...

like image 188
LAM Wai-Him Avatar answered Oct 13 '22 01:10

LAM Wai-Him