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?
ng serve
is an Angular CLI tool that starts a web server runnng on NodeJS and that buids your app. The app itself runs inside the browser. I have read your question. Have you read my comment? You have nvm, so use it to use the appropriate version of Node based on what you're doing. That's the whole point of NVM. - JB Nizet