I'm trying to setup Angular 2 using "npm install @angular/cli -g "
After the install, the only warning I see is the UNMET PEER DEPENDENCY rxjs@^5.0.1, which I then install and reinstall "npm install @angular/cli -g"
No matter what I do, or what version of Node I setup with n, I keep getting the following message when trying to user the "ng" commands:
zsh: command not found: ng
I've been looking around and have not found a solution for this.
Has anyone run into this and have any suggestions?
UPDATE:
It looks like this is not a angular/cli specific issue.
I now see that I get the same message when I try to run "Grunt" and "Ionic" commands on an existing project that was working fine.
zsh: command not found: ionic zsh: command not found: grunt
sudo npm install
at some point, if that's the case you'd need to runsudo npm install -g angular/cli
due to permission issues. You can typically fix that using chown or chmod on your ~/.npm folder. If that doesn't work, uninstall angular/cli and reinstall it.