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

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

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 “.

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 by excute this on your terminal:

 npm cache clean -f
  • launch the installation of the latest stable version of node by executing this :

 sudo npm install -gn 
 sudo n stable
  • check the version of your node js with the command:

node -v.

You can resume building your Angular application where it failed.

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 nodejs.org site and follow the instructions.

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

Leave a Comment