Angular-cli: ng command not found on Mac

Created on 27 Sep 2019  路  4Comments  路  Source: angular/angular-cli

馃悶 Bug report

Command (mark with an x)


No, this is issue with installation on Macbook Pro

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?


I dont know, I am new to angular

Description

STEPS

  1. sudo npm uninstall -g angular-cli
  2. sudo npm uninstall -g @angular/cli
  3. sudo npm cache clean --force
  4. sudo npm install -g @angular/cli
  5. sudo npm link @angular/cli
  6. ng -v results in -bash: ng: command not found
  7. Under my /Users/dinob/ there is no directory .npm-global

PROBLEM: ng command is not found

馃敩 Minimal Reproduction

STEPS

  1. sudo npm uninstall -g angular-cli
  2. sudo npm uninstall -g @angular/cli
  3. sudo npm cache clean --force
  4. sudo npm install -g @angular/cli
  5. sudo npm link @angular/cli
  6. ng -v results in -bash: ng: command not found
  7. Under my /Users/dinob/ there is no directory .npm-global

馃敟 Exception or Error

-bash: ng: command not found

馃實 Your Environment

ng version returns ng command not found
npm -v 6.9.0
node -v 10.16.0

All 4 comments

Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag angular-cli.

If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.

Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag angular-cli.

If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.

Seriously! Do you think I came here without checking it all over the net including SO about this first? What are github issues for if not for bug issues?
Why are you assuming it is not a bug?
Why not provide exact steps or comment on my steps and identify if something in them is wrong (which I doubt and which are by the way coming from SO based on my research of this bug before landing on your page to report it)

Thanks for being useless Angular team

Here is the solution to your problem

https://stackoverflow.com/questions/58138138/angular-cli-ng-command-not-found-on-mac-os/58207895#58207895

You can close this now

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

delasteve picture delasteve  路  3Comments

gotschmarcel picture gotschmarcel  路  3Comments

MateenKadwaikar picture MateenKadwaikar  路  3Comments

IngvarKofoed picture IngvarKofoed  路  3Comments

hareeshav picture hareeshav  路  3Comments