1、安装 设置开发环境
npm install -g @angular/cli
2、创建新项目
ng new myApp / ng new router routing
3、启动开发服务器
cd my-app ng serve --open
4、创建组件模块
ng g component myComponent
angular4 搭建项目
原文:http://www.cnblogs.com/vhen/p/7572075.html