sudo npm install -g @angular/cli
ng new my-first-app
cd my-first-appng serve
Angular 4 - The Basics 笔记(1): Install
原文:http://www.cnblogs.com/hardi/p/6822069.html