Tuesday, November 28, 2017

Install angular cli on Ubuntu

1. Check material on :https://github.com/angular/angular-cli
2.npm install -g @angular/cli
3.ng new PROJECT-NAME
cd PROJECT-NAME
ng serve
4.ng serve --host 0.0.0.0 --port 4201
5.Global package:
npm uninstall -g @angular/cli
npm cache clean
# if npm version is > 5 then use `npm cache verify` to avoid errors (or to avoid using --force)
npm install -g @angular/cli@latest

No comments:

Post a Comment