是否有Angular / Angular-CLI和Node.js的兼容性列表?

我经常遇到这个问题,不得不使用已弃用的Angular来启动旧的Angular项目。

因为我无法正常运行最新的Node.js版本(至少是最新的LTS版本),所以我经常遇到这样的问题,即我无法运行旧项目。我通过使用节点版本管理器解决了这个问题,但是仍然经常遇到一个问题,即我不确定什么是用于Angular

Version X的最佳Node.js版本。

遗憾的是,官方发行说明

sha琐地处理了该主题,并且不是真正的帮助,尤其是如果您希望从哪个Angular版本中知道您不能再使用特定的Node.js版本…

回答:

|Angular CLI|       Angular      |            NodeJS            |TypeScript |

|-----------|--------------------|------------------------------|-----------|

|- |2.x |6.0.x or later minor |2.0.x |

|1.0.6 |4.x |6.9.x or later minor |2.2.x |

|1.1.3 |4.x |6.9.x or later minor |2.3.x |

|1.2.7 |4.x |6.9.x or later minor |2.3.x |

|1.3.2 |4.2.x or later minor|6.9.x or later minor |2.4.x |

|1.4.10 |4.2.x or later minor|6.9.x/8.9.x or later minor |2.4.x |

|(1.5.6) |5.0.x |6.9.x/8.9.x or later minor |2.4.x |

|1.5.6 |5.1.x |6.9.x/8.9.x or later minor |2.5.x |

|1.6.7 |5.2.x or later minor|6.9.x/8.9.x or later minor |2.5.x |

|1.7.4 |5.2.x or later minor|6.9.x/8.9.x or later minor |2.5.x |

|6.0.8 |6.0.x |8.9.x or later minor |2.7.x |

|6.1.5 |6.1.x |8.9.x or later minor |2.7.x |

|6.2.9 |6.1.x |8.9.x or later minor |2.9.x |

|7.0.7 |7.0.x |8.9.x/10.9.x or later minor |3.1.x |

|7.1.4 |7.1.x |8.9.x/10.9.x or later minor |3.1.x |

|7.2.4 |7.2.x |8.9.x/10.9.x or later minor |3.2.x |

|7.3.9 |7.2.x |8.9.x/10.9.x or later minor |3.2.x |

|8.0.6 |8.0.x |10.9.x or later minor |3.4.x |

|8.1.3 |8.1.x |10.9.x or later minor |3.4.x |

|8.2.2 |8.2.x |10.9.x or later minor |3.4.x |

|8.3.25 |8.2.x |10.9.x or later minor |3.5.x |

|9.x |9.x |10.13.x/12.11.x or later minor|3.6.x/3.7.x|

参考:https

:

//gist.github.com/LayZeeDK/c822cc812f75bb07b7c55d07ba2719b3

以上是 是否有Angular / Angular-CLI和Node.js的兼容性列表? 的全部内容, 来源链接: utcz.com/qa/418794.html

回到顶部