安装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