angular升级10.2.2
-
设置镜像
# 设置淘宝源 npm config set registry https://registry.npmmirror.com npm config set sass_binary_site https://npmmirror.com/mirrors/node-sass
-
本文描述是指从
9.x
升级至10
的描述说明;NG-ALAIN 只需一行命令即可:ng update @angular/core@10 @angular/cli@10 ng-zorro-antd@10 ng-alain@10
-
ng zorro升级
用于修复升级后的二级入口问题
(1) 安装 NG-ZORRO TSLint
$ npm i nz-tslint-rules -D
(2) upgrade your global tslintadd the command to the scripts in package.json, and then use npm run lint:fix
{ "scripts": { "lint:fix": "tslint --project tsconfig.json --fix" } }
(3)run from node_modules/.bin/tslint
参考链接