‘ng’ is not recognized as an internal or external command

Blog ‘ng’ is not recognized as an internal or external command

I am writing this post for ‘ng’ is not recognized as an internal or external command as I haven’t found any proper solution online, especially with stackoverflow.com and github.com/angular/angular-cli/.

I have identified the issue that, It was a conflict of ionic + angular 6 and angular/cli 7 with Windows 10.

An alternative solution, I have tried with ‘Yarn‘, but it was also not able to solve that issue, somehow and somewhere it was accessing path from the user administrator, where I haven’t install nodejs/yarn/angular. I had install separately and globally install on localhost.

Working Solutions implemented.

npm uninstall -g @angular/cli
npm uninstall -g ionic cordova
npm uninstall -g yarn
npm uninstall -g npm


Use Administrator Command prompt or PowerShell

uninstall all tools/packages of Angular

uninstall nodejs from setting=>app=>nodejs
Restart the system

I have already installed the scoop.

Disable Ransomware Protection

scoop install yarn
scoop install nodejs
yarn global add @angular/cli

 

  1. npm uninstall -g @angular/cli
  2. npm uninstall -g ionic cordova
  3. npm uninstall -g yarn
  4. npm uninstall -g npm
  5. uninstall nodejs from setting=>app=>nodejs
  6. Restart the system.
  7. I have already installed the scoop.
  8. disable Ransomware Protection
  9. scoop install yarn
  10. scoop install nodejs
  11. yarn global add @angular/cli

after that ng –version working fine in any directory.

‘ng’ is not recognized as an internal or external command problem solving

‘ng’ is not recognized as an internal or external command problem solving

Feel free to contact me, If you have any relevant issue need my assistance. Happy to Help You =:)

Contact/Consult Angular 7 Developer

 

By |2019-02-23T09:23:42+00:00February 23rd, 2019|Categories: Angular, Angular7, Development|Tags: , , , |0 Comments

About the Author:

Freelancer Responsive Web/Mobile Applications Designer & Developer with Open Source Technologies like Java, DotNet, PHP, Python, Ruby and Rail, ionic, React Native ( Hybrid Progressive Web/ Mobile Apps Designing & Development ), Android, iOS, iPad, iPhone, Windows. Freelance frontend designing and development services providing with NodeJS, ReactJS, Angular2JS, VueJS, MV* javascript framework with CentOS.