安裝yarn:npm install --global yarnnode
配置倉庫:npm
npm config set registry http://registry.npmjs.org/json
yarn config set registry https://registry.yarnpkg.com/spa
若是用淘寶倉庫:ip
npm config set registry https://registry.npm.taobao.orgget
yarn config set registry https://registry.npm.taobao.orgit
新建項目:ng new project --skip-installangular
Error: Local workspace file ('angular.json') could not be found.module
執行sudo ng update @angular/clicli