Installed angular-cli globally using (npm install -g angular-cli) but when I\'m trying to create project using ng new my-project it is throwing err
npm install -g angular-cli
ng new my-project
the easiest solution is (If you have already installed angular) :
1 remove the ng alias if existing
unalias ng
2 add the correct alias
alias ng="/Users//.npm-global/bin/ng"
3 run ng serve for example and it will work.