Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses and challenges
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Calculator

0

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

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

10 months ago · Santiago Trujillo
2 answers
Answer question

0

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

10 months ago · Santiago Trujillo Report

0

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

This worked for me.

10 months ago · Santiago Trujillo Report
Answer question
Find remote jobs