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
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
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]
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With