Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

You are running version v8.9.3 of Node.js, which is not supported by Angular CLI 8.0+

My current angular version is '^7.1.4' and I want to continue with same version. but while doing ng serve I am getting below error.

You are running version v8.9.3 of Node.js, which is not supported by Angular CLI 8.0+. The official Node.js version that is supported is 10.9 or greater.

Please visit https://nodejs.org/en/ to find instructions on how to update Node.js.

Node version : v8.9.3 NPM Version : 6.4.1

thanks in advance

like image 678
Swapnil Yeole Avatar asked Nov 19 '19 05:11

Swapnil Yeole


3 Answers

Looks like your global CLI version got upgraded to 8. To downgrade to 7 try this:

 ng --version
 npm uninstall -g @angular/cli
 npm cache clean --force

 npm install -g @angular/[email protected]
 ng --version
like image 72
ulmas Avatar answered Nov 09 '22 15:11

ulmas


It seems that you might have upgraded your angular/cli to latest, downgrade it to version 7.1.4. Run these commands -

npm uninstall -g @angular/cli
npm cache clean --force    
npm install -g @angular/[email protected] 
like image 2
Vinay sharma Avatar answered Nov 09 '22 15:11

Vinay sharma


You can use nvm for a different angular project you can switch your node version as your requirement, here I attach a link to install nvm. https://itnext.io/nvm-the-easiest-way-to-switch-node-js-environments-on-your-machine-in-a-flash-17babb7d5f1b

like image 1
Rushi Patel Avatar answered Nov 09 '22 16:11

Rushi Patel