1.安装cli脚手架 npm install -g @angular/cli 2.创建新项目 ng new angulaiproject 3.cd到项目路径 cd .\angulaiproject\ 4.npm安装依赖 npm install 5.运行项目 ng serve --open