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

16,404

Solution 1

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

Solution 2

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

This worked for me.

Share:
16,404
walexy
Author by

walexy

Updated on June 23, 2022

Comments

  • walexy
    walexy almost 2 years

    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

  • walexy
    walexy over 2 years
    Can i ignore the cli warning and continue using node 16?
  • Anton Marinenko
    Anton Marinenko over 2 years
    I wouldn't recommend it, but you can try by your own risk.
  • walexy
    walexy over 2 years
    What do you recommend ?.
  • Anton Marinenko
    Anton Marinenko over 2 years
    Just use v14.xx