angular 9.2升级10.2.2

angular升级10.2.2

  1. 设置镜像

    # 设置淘宝源
    npm config set registry https://registry.npmmirror.com
    npm config set sass_binary_site https://npmmirror.com/mirrors/node-sass
  2. 本文描述是指从 9.x 升级至 10 的描述说明;NG-ALAIN 只需一行命令即可:

    ng update @angular/core@10 @angular/cli@10 ng-zorro-antd@10 ng-alain@10
  3. 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

参考链接

1. https://github.com/NG-ZORRO/nz-tslint-rules/issues/1

2. NG-ALAIN 升级到 10.0 版本

3. NG-ZORRO v10 升级指南

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值