FIX for 'ng is not recognized' Error - Angular CLI Installed But Still Not Working

Опубликовано: 03 Январь 2023
на канале: Late Developer
15,316
60

I had Angular installed globally but kept seeing errors when trying to use ng command but this fixed it.

Simply, add the relevant directory path to your ng.cmd file as a new Environment Variable in Path on Windows

Command I Used was Windows key + R then type %APPDATA%

You can see the Stack Overflow post here: https://stackoverflow.com/questions/4...

I am installing Angular CLI with the following:
npm install -g -f @angular/cli
(check that this is still current when you are trying to do this as it may change!)

Testing with
ng v

Remember - it's never too late!

Cheers,
Steve