npm uninstall -g angular-cli
npm cache verify
sudo npm install -g @angular/cli@latest
使用ng version
查看当前安装的版本
ng update @angular/core
创建Angular项目目录
ng new angular-apps --createApplication=false --minimal=true
创建Angular应用
ng generate application app-name --minimal=true
创建Component
ng generate component component-name --module app
ng build app-name --baseHref="/" --prod=true --outputPath="./dist/app-name"
ng add @nguniversal/express-engine --client-project='app-name'