Ng command is not working in angular app

When i tried to create component using ng command with angular cli at that time i am getting this error.

Error: ng is not installed, but available in package nailgun, press [Enter] to run it, Ctrl+C to cancel.

Screenshot:

1 Like

That is because ng is not installed as system-wide, but as development dependency in package.json. So, you should run it from your project folder which it’s learn-ngrx/ instead of learn-ngrx/src.

1 Like

Okay, Thank You @alice