ng is not recognized as an internal or external command
I installed angular-cli via command prompt. And then I write ng new my-first-app, it doesn't work: 'ng' is not recognized as an internal or external command, operable program or batch file. How can I fix it?
Did you install it globally?
CHeck out the wiki here: https://github.com/angular/angular-cli/wiki#getting-started
Yeap. I found solution. Comman Prompt should be runned as adminstrator. After that it recognized ng.
It does not require administrative rights, so there might have been something with your install (e.g. did you install CLI using administrative prompt?).
Closing this in any case as solved. Thanks!
Please try to use Node.js command prompt in your windows. It will work.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.