1.安装node.js 和cnpm
2.cnpm install -g @angular/cli 安装angular脚手架:
3.ng new angulardemo
cd angulardemo
cnpm install
ng serve --open