The angular cli requires a minimum node.js version of either v14.20, v16.13 or v18.10 – Troubleshooting

Last update July 2, 2023 at 07:56

How to solve The angular cli requires a minimum node.js version of either v14.20, v16.13 or v18.10 error

A more recent update of the post exists on troubleshooter.tedidev.com

You are creating an angular project under a linux type debian for the first time and you find this error “The angular cli requires a minimum node.js version of either v14.20, v16.13 or v18.10 “. What to do ?

In this kind of situation we quickly understand that it suffices to update our node js. The problem is that sometimes we encounter unforeseen events. This is what happened to us with our ubuntu 16.04 LTS and to fix it, we offer you our solution.

The angular cli requires a minimum node.js version of either v14.20, v16.13 or v18.10

To solve such a problem, just update Nodejs, for this there are two ways:

  • The update via the linux terminal (which is my favorite)

  • The manual update by downloading the source code of Node js.

To update Nodejs via the linux terminal

Our preferred but not mandatory solution is the use of the terminal. To solve it you have to:

  • Clean your npm cache: npm cache clean -f

  • launch the installation of the latest stable version of node: sudo npm install -gn (continue even if you see errors. this is what we did)

  • type the command: sudo n stable (this worked for us)

  • check the version of your node js with the command: node -v.

You can resume building your Angular application where it failed. The second point might not be needed for updating node but we couldn't check to be sure.

Node js manual update

The second method for the curious would be to download the node tar.gz to install it manually. To do this you have to go to the nodejs.org site and follow the instructions.

See also:

The angular cli requires a minimum node.js version of either

SPONSORED ARTICLES

WHAT IS TEA? What is the difference between tea and herbal tea?

LATEST ARTICLES