1. install
> npm install -g angular-cli
2. create app
> ng new first-app
3. build app
> cd first-app
> ng serve
> npm install -g angular-cli
> ng new first-app
> cd first-app
> ng serve
转载于:https://www.cnblogs.com/skating/p/6125888.html