Create React App Requires Node 14 Or Higher. Please Update Your Version Of Node – How To Fix It?

Create React App requires Node 14 or higher. Please update your version of Node

The error “Create React App requires Node 14 or higher. Please update your version of Node” is a common error. It relates to the Node version when you try to initiate a react app. So how to solve it? Let’s go into detail.

Reason for error “create react app requires Node 14 or higher. Please update your version of Node”

This error happens because of the conflict between react app version and the NodeJS version. When your current react app version, you are using only support for Node versions higher than 14. There is some solution for this error.

How to solve this error?

Install old version react js

With this solution, you will download an older version that supports your current Node version.

Example:

node -v
v8.0.0

Here I am using node version 8.0.0, which is very old. The latest version that reacts support for node version 8.0.0 is 3.4.1, so I will download that specific React version with this command:

npm install create-react-app@versionName

Example:

npm install [email protected]

But it would be best if you only used this solution when working with the old Node version. If not, you should use the below solution.

Update node version

With this solution, you will uninstall your current Node js and then download the node version supported by react js. You can download the node version here.

Using nvm

Nvm, which stands for node version manager, will help you run multiple node versions on one device. With nvm, you will have to uninstall node js in your device first because nvm will help you to do that.

You can download nvm here. You can download the exe file. It is the easiest way to download nvm. You can check if your device has already nvm yet by command:

nvm –v

if it shows something like this:

Running version 1.1.9

It means you download nvm success. Then you can download a lot of node versions with the command:

nvm install version

Example:

nvm install 8.0.0

Make sure you run your terminal as administrator. If not, you might get the error.

After download success, nvm will show something like this:

Downloading npm version 5.0.0... Complete
Installing npm v5.0.0...

Installation complete. If you want to use this version, type

nvm use 8.0.0

Then to use node version 8.0.0.

You can use the command:

nvm use 8.0.0

If you want to uninstall some node versions, you can use:

nvm uninstall <version>

Example:

nvm uninstall 8.0.0
Uninstalling node v8.0.0... done

Summary

In this tutorial, I have shown you how to solve the error “create react app requires Node 14 or higher. Please update your version of Node“. You can download the old react version that supports your node version or can update your node version. You can also use nvm to use a lot of node versions in one device.

Maybe you are interested:

Leave a Reply

Your email address will not be published. Required fields are marked *