You must be thinking that it is a tough nut to crack, but it is not as complex as it looks. In fact, it is simpler to solve the error. We will provide you with options to help you understand the way you can resolve it. Let’s check out how the error pops up
How the error shows up
When you try to create a react project, you get the following error
$ npx create-react-app react-demo
npx: installed 67 in 6.045s
You are running Node 10.19.0.
Create React App requires Node 14 or higher.
Please update your version of Node.
Solutions To Fix the Error “Create React App requires Node 14 or higher. Please update your version of Node”
As the error itself says to update the node version, you need to do this. We have some amazing solutions to help you get rid of this error warning. Have a look at the solutions
Solution 1 – For Windows user
If you are using Windows for creating projects and get the error, you need to update node.js in your Windows. To do that, you need to follow the below procedure
- Open the official website to download and install the latest node release
- Once done, install the n module along with upgrading the node in the terminal.
This process simply solved the error.
Solution 2 – For Linux user
If you are the one who uses Linux to work on your projects, you need to update the node version in it. In order to upgrade the node in Linux, you need to follow the below commands
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo n latest
Solution 3 – Upgrade Ubuntu
To solve the error, ubuntu users first need to run a command to update ubuntu. Use the below command
$ sudo apt update
Once you run this command, the next step is to handle node status. For this, run the following command
npm install -g n
In order to install the new release of node, follow this command:
$ sudo n stable
We discussed the solutions to fix the error warning “Create React App requires Node 14 or higher. Please update your version of Node”. We have solutions for users using different systems.
I hope it helps!