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
3 Answers
Reset to default 0Some 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.