Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 8 is not running on nodejs version 8.10.0

I have created frontend angular 8 project with nodejs version 10.16.0 and cli version 8.1.2

but I have to install backend nodejs project which only support node version 8 then for running this backend project I have install NVM and changed my current node version(10.16.0) to 8.10.0.

After changing node version my backend project running properly.

but now I can not run any angular 8 project.and got error

"You are running version v8.10.0 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."

for resolving this issue I have uninstall CLI and install again but project not running.

At same time I have tried to run angular 5 project but this was also not running and got same error. For angular 5 project I have install angular cli 1.7.0 localy but still got same error.

To remove cli version i have use command:

npm uninstall --save-dev angular-cli
npm cache clean --force
npm install @angular/[email protected] --save

How can I run angular 8 and angular 5 frontend with nodejs version 8.10.0 at same time?

like image 309
Prashant Shukla Avatar asked Jan 28 '26 01:01

Prashant Shukla


1 Answers

I have also faced the same issue, I have installed both the version using NVM.

Set Nodejs version 10.16.0 as default version.

nvm alias default node 10.16.0

Open a new terminal window

nvm use 8.10.0

Same is Working for me :)

Note: Only thing is when you close and open terminal it'll change to the default version.

like image 141
Rahul Sharma Avatar answered Jan 29 '26 14:01

Rahul Sharma



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!