ng --version showing The current version of Node (16.8.0) is not supported by Angular

Viewed 28256

I just installed the latest version of node(16.8) using nvm and angular/cli(12.2).

But when i run ng --version

It shows the following:

Warning: The current version of Node (16.8.0) is not supported by Angular.

I tried to downgrade the node and installed node 14.15 but ng is not working anymore.

Should i ignore the warning and use node 16?.

Why is ng not working with node 14.15?.

PS: I am using nvm to manage the different node versions

4 Answers

You can use Angular CLI with Node >=14 version. Command not working, because you switched to another nvm node version with it's own installed packages. You have to install angular cli again on your node 14.15. npm install -g @angular/cli

nvm use <previous-version>
npm uninstall -g @angular/cli
nvm use 16
npm install -g @angular/cli
ng version

This worked for me.

Kindly go the the flowing link to install the compatible Node version supported by different Angular versions:

Angular And Node.Js Compatibility

Select the angular core version for checking it's compatibility as per your need as shown in the below Image:

angular-core version compatibility

Related