npm安装angular分两部:
1:npm install -g typescript typings
2:npm install -g @angular/cli
npm新建一个angular的项目
ng new 项目名
卸载angular
npm uninstall -g angular-cli
npm卸载安装angular:
npm uninstall --save-dev angular-cli
npm install --save-dev @angular/cli@latest