question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:24 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
PHuhncommented, Jul 23, 2017

I just got a new computer (win 10) and experienced the same problem moving to new environment. I added %APPDATA%\npm to the PATH environment variable. That is where the ng command is (thanks emrhzc).

6reactions
eran12commented, Feb 6, 2017

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/

Read more comments on GitHub >

github_iconTop Results From Across the Web

ng is not recognized as an internal or external command
Look up the path for file ng.cmd. Update the environment variable PATH value with the same path path. Restart the command line console...
Read more >
'ng' is not recognized as an internal or external command
To solve the error "ng is not recognized as an internal or external command, operable program or batch file", install the angular cli...
Read more >
How to Fix “ng is not Recognized as Internal or External ...
Solution 2: Add Path of ng to Windows ... The error “ng is not Recognized as an Internal or an External Command” may...
Read more >
How To Solve ng Is Not Recognized As An Internal Or ...
For this solution, you just need to follow a few important operations. Go to the control panel and select the system and security...
Read more >
Resolved:'ng' is not recognized as an internal or external ...
This error I found to be due to improper installation or configuration of Angular CLI in the local machine. Below is how I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found