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

'ng' is not recognized as an internal or external command, operable program or batch file.

Open LunaBawa opened this issue 9 years ago • 24 comments

Am getting this at after setup

C:\Users\USER>ng --version 'ng' is not recognized as an internal or external command, operable program or batch file.

C:\Users\USER>node --version v6.9.5

Am using Windows 10/ 64 bit

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

The log given by the failure.

Normally this include a stack trace and some more information.

Mention any other details that might be useful.


Thanks! We'll be in touch soon.

LunaBawa avatar Feb 05 '17 18:02 LunaBawa

Hi I have face this error while am trying to create new app using ng new -Myapp syntax. and i have already installed latest version of npm cli.

Still i getting following error. Error: 'ng' : The term 'ng' 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 line:1 char:1

  • ng --version
  • ~~
    • CategoryInfo : ObjectNotFound: (ng:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

NiraliB avatar Mar 01 '19 07:03 NiraliB

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

tarundvarma49 avatar Mar 19 '19 11:03 tarundvarma49

The problem is NOT the install of the NPM nor the path ! If you want to use the "ng" commend you need to install the angular-cli.

https://cli.angular.io/

I installed the angular cli as well and also added the environment variables, but still getting the error.

KunalAsh95 avatar May 28 '19 08:05 KunalAsh95

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.