Термин «node.exe» не распознается как имя командлета, функции, файла сценария или работоспособной программы. - PullRequest
0 голосов
/ 02 апреля 2020

Я получаю сообщение об ошибке при попытке создать проект angular. Я впервые установил node.js, и все тестирование прошло успешно.

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

Переменные среды также были установлены согласно инструкции

enter image description here

Может кто-нибудь сказать мне, что мне не хватает?

РЕДАКТИРОВАТЬ:

Я установил node.js и angular

enter image description here

1 Ответ

1 голос
/ 02 апреля 2020

Я думаю, вам не хватает path для NodeJs. Попробуйте добавить путь к environment variables

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...