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 error:
npm install -g angular-cli
ng new my-project
ng: command not found
The issue is simple, npm doesn't know about ng
npm
ng
Just run npm link @angular/cli and it should work seamlessly.
npm link @angular/cli
2.1m questions
2.1m answers
60 comments
57.0k users