Angular 踩坑之版本升级—— TS / Node版本

这个比较简单也比较坑,可能你只计划升级Node,但最后发现连Angular也要一起升,无形中工作量加大不少,Angular官方也没说对应的TS版本和Node版本。但是在compiler-cli里确实对这两个有要求。

具体可以查询angular/package.json at 8.0.0 · angular/angular · GitHub

为了方便我把最近的几个版本的依赖给大家列出来。

angular 14
    "typescript": ">=4.6.2 <4.8"
    "node": "^14.15.0 || >=16.10.0"
angular 13
    "typescript": ">=4.4.2 <4.5"
    "node": "^12.20.0 || ^14.15.0 || >=16.10.0"
angular 12
    "typescript": ">=4.2.3 <4.3" 
    node "^12.14.1 || ^14.0.0"
angular 11
    "typescript": ">=4.0 <4.1"
    "node": ">=10.0"
angular 10
    "typescript": ">=3.9 <4.0"
    "node": ">=10.0"
angular 9
    "typescript": ">=3.6 <3.8"
    "node": ">=10.0"
angular 8
    "typescript": ">=3.4 <3.5"
    "node": ">=8.0"

猜你喜欢

转载自blog.csdn.net/KenkoTech/article/details/126974815
今日推荐