5

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

2
  • 1
    You're missing Node.js, it looks like...
    – Brad
    Commented Apr 2, 2020 at 16:46
  • @Brad I have downloaded and installed the node.js Commented Apr 2, 2020 at 17:08

1 Answer 1

20

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

2
  • 1
    Visual Studio Code should be restarted after adding the path to environment variables. Thanks @saitama
    – Tassisto
    Commented May 15, 2023 at 12:12
  • 1
    i have node js path among my environment variables. whts wrong with that? Commented Jun 17, 2023 at 7:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.