最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

node.js - Why is Angular version 14 not working on some node versions? - Stack Overflow

programmeradmin2浏览0评论

I am working on many different versions of Angular like Angular 10 to 18. While I am using nvm for use of node versionlisted here:

  22.14.0
  21.7.1
  20.11.1 (Currently using 64-bit executable)
  20.11.0
  18.19.1
  18.13.0
  18.10.0
  16.14.2
  16.13.0

As I researched node 22 is stable but while using it on Angular 14 it is showing, errors like:

Then I used an earlier version 20.11.1 which shows node: 20.11.1 not supported but it compiles successfully

Can anyone explain what to do ?

I tried node version 20 with Angular 14 - it's working but also showing it's not supported

I am working on many different versions of Angular like Angular 10 to 18. While I am using nvm for use of node versionlisted here:

  22.14.0
  21.7.1
  20.11.1 (Currently using 64-bit executable)
  20.11.0
  18.19.1
  18.13.0
  18.10.0
  16.14.2
  16.13.0

As I researched node 22 is stable but while using it on Angular 14 it is showing, errors like:

Then I used an earlier version 20.11.1 which shows node: 20.11.1 not supported but it compiles successfully

Can anyone explain what to do ?

I tried node version 20 with Angular 14 - it's working but also showing it's not supported

Share Improve this question edited Mar 17 at 7:11 marc_s 756k184 gold badges1.4k silver badges1.5k bronze badges asked Mar 17 at 6:37 neel upadhyayneel upadhyay 3442 silver badges11 bronze badges 2
  • 1 Please don't post textual information in the form of pictures. Please see: Why should I not upload images of code/data/errors? If you still need an image, it can complement the textual information. – Sergey A Kryukov Commented Mar 17 at 6:48
  • "As I researched node 22 is stable but while using it on Angular 14 it is showing" - angular is irrelevant, if you're unable to run npx and npm, you have problems with nvm, you need to address them. – Estus Flask Commented Mar 17 at 9:54
Add a comment  | 

3 Answers 3

Reset to default 0

Some of the angular versions support only their supported node versions, iam using angular 16 with node 18 and 20 which is working normally,

But when i switch to node 22 my angular 16 application will support those node version,

so we need to use supported node versions for our working angular version.

Have a look at the compatibility table.

Angular 14 requires node 14 or 16 (not higher or lower)

Angular 14 requires Node.js version 14.15.0 or later, but it is best compatible with Node.js 16 and above. If you're using an older or unsupported Node version, you may face issues due to dependency mismatches, missing ES module support, or outdated package managers. To fix this, update Node.js to the latest LTS (Long-Term Support) version using nvm or direct installation.

发布评论

评论列表(0)

  1. 暂无评论