Abdullah-Al-Nahian
Abdullah-Al-Nahian

Reputation: 147

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

I'm getting an error while trying to create an angular project. This is the first time I have installed node.js and all the testing was successful.

PS D:\ASP.NET Core & Angular\AngularAPI> ng new Angular7
& : The term 'node.exe' 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 C:\Users\Nahian\AppData\Roaming\npm\ng.ps1:15 char:5
+   & "node$exe"  "$basedir/node_modules/@angular/cli/bin/ng" $args
+     ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (node.exe:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

The environment variables were set according to the instruction as well

enter image description here

Can anyone tell me what am I missing?

EDIT:

I have Installed the node.js and angular

enter image description here

Upvotes: 6

Views: 54394

Answers (1)

Levi
Levi

Reputation: 859

I think you are missing the path for NodeJs. Try adding the path to environment variables

Upvotes: 20

Related Questions