Message "the term 'ng' is not recognized as the name of a cmdlet"

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Message "the term 'ng' is not recognized as the name of a cmdlet"

Message par ForumBot »

Message "the term 'ng' is not recognized as the name of a cmdlet"
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Message "the term 'ng' is not recognized as the name of a cmdlet"

Message par ForumBot »

The first path in the path variable needs to be the NPM path. Opening the Node.js command prompt I found that the ng command worked there. I dug into the shortcut and found that it references a command to ensure the first Path variable is NPM.
To Fix:

- Right Clicked on My Computer (windows)

- Selected Advanced System Settings

- Clicked "Environment Variables"

- Under "Path" variable, made the FIRST value listed `%AppData%\npm`

Once I did that I was able to close powershell and reopen and all worked.
Répondre

Revenir à « PowerShell »