1
votes

I was getting some version error from the start of my project so after this I uninstalled and deleted all files of node and cli and installed from the beginning. And now when I am running npm start it is showing:

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

Where my version details are: enter image description here

Updated: When using node 10.16.0 showing this error enter image description here

I have tried installing packages again and again after deleting it but it hasn't worked. I have removed all the packages and installed again but it didn't work.

1
It should be quite clear from the error and ng v output. You're running nodejs 8.11.2, the CLI wants 10.9 or greater. Update nodejs on your machine. - R. Richards
Have you tried installing Node.js 10.9 or greater from nodejs.org/en? - lisymcaydnlb
nodejs != angular. These versions do not relate to one another, except that one might require the other to be at a minimum, so update nodejs. - Silvermind
I have added updates to my question showing whar happens when I use node version 10.16.0 - Pritish kumar
If you read your second error it says npm does not support node v10.16.0. So update npm which is not the same as node. - penleychan

1 Answers

2
votes

You need to make sure that NPM and NodeJS versions on your machine should meet Angular v8's expectations.

So make sure your NPM is updated to support Node.js version(10.16.0).

As per your error screenshot:

It turns out that the current installed npm is not compatible with the new node and has a hard time updating.

The solution is to uninstall npm, clear npm cache and then reinstall node which will contain the correct version of npm.