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: command not found

See original GitHub issue

After installing angular-cli with the help of this https://github.com/angular/angular-cli/issues/389#issuecomment-213420501 i installed Angular-cli successfully.

After that i tried a ng command ng --help what gave me the following message. -bash: ng: command not found

Running npm list -g --depth=0 shows me that angular-cli is installed.

ReinosMac:~ reinos$ npm list -g --depth=0
/Users/reinos/.npm/lib
├── angular-cli@0.0.33
├── broccoli-plugin@1.2.0
└── broccoli-source@1.1.0

Running on a Macos.

Am i missing something?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:73 (5 by maintainers)

github_iconTop GitHub Comments

125reactions
reinoscommented, Apr 22, 2016

Removing NODE and using NVM instead fixed a lot of issues.

85reactions
reinoscommented, Apr 22, 2016

seems to fixed when i add a alias in my bash_profile

alias ng="/Users/reinos/.npm/lib/node_modules/angular-cli/bin/ng"

but that should not be the way to do, right…?

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Angular - ng: command not found - Stack Overflow
I'm trying to learn Angular and my knowledge in terminal is beginner. After I installed Angular and then type ng new my-project ....
Read more >
ng: command not found (Angular) error [Solved] | bobbyhadz
To solve the error "ng: command not found", install the angular cli package globally by running npm install -g @angular/cli@latest and restart your...
Read more >
Ways to fix “-bash: ng: command not found” - Medium
1 . Linking angular/cli with npm · 2. Setting the location of npm folder · 3. Clearing cache and Re-installing Angular (least recommended)...
Read more >
ng Command Not Found - Linux Hint
The error “ng command not found” occurs when your system's shell cannot find the path to the ng cli binary. There are three...
Read more >
How To Fix ng: command not found On A Mac - Jon D Jones
How To Fix ng: command not found On A Mac · 1. Uninstall Everything · 2. Re-install ...
Read more >

github_iconTop Related Medium Post

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