angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ng is not recognized as an internal or external command

Open alievako opened this issue 9 years ago • 5 comments

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?

alievako avatar Aug 15 '17 10:08 alievako

Did you install it globally?

CHeck out the wiki here: https://github.com/angular/angular-cli/wiki#getting-started

mscudlik avatar Aug 15 '17 17:08 mscudlik

Yeap. I found solution. Comman Prompt should be runned as adminstrator. After that it recognized ng.

alievako avatar Aug 15 '17 18:08 alievako

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!

hansl avatar Aug 18 '17 16:08 hansl

Please try to use Node.js command prompt in your windows. It will work.

tarundvarma49 avatar Mar 19 '19 11:03 tarundvarma49

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.