. Advertisement .
..3..
. Advertisement .
..4..
If you have suddenly started getting the error “Create React App requires Node 14 or higher. Please update your version of Node”, then it can be a real nightmare. The problem seems to appear out of nowhere and no amount of troubleshooting seems to fix it. Here is one of the most effective ways to fix this error. Read on.
What is “Create React App requires Node 14 or higher. Please update your version of Node”?
When attempting to create a new reactjs project, you may encounter 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.
How to deal with it?
Here are some methods we recommend to you to fix the above error. Take a look and choose the method that works for you:
Option 1: Upgrade Nodejs Version in Windows
You simply have to upgrade your system’s nodejs version. If you’re using Windows, all you have to do now is update the node version.
1. Install the new Node.js release by downloading it from its authorised download page.
2. Inside the terminal window, install the n module and upgrade Node.js.
3. Now, you have fixed your issue.
Option 2: Update ubuntu
With this way, you will need to update ubuntu first, by running the following command:
$ sudo apt update
Then, continue to run this command to manage the status node:
npm install -g n
finally, to install the latest version of nodejs, run:
$ sudo n stable
Option 3: Upgrade Nodejs in Linux
If you’re utilizing Linux, you should read this.
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
OR
sudo n latest
Now, you have fixed your problem.
Conclusion
We hope you enjoyed our blog post on how to solve the bug “Create React App requires Node 14 or higher. Please update your version of Node“. Please leave a comment if you have any further questions or concerns regarding this topic. Thank you for taking the time to read; we are always delighted anytime one of our pieces can give important information on this topic!
Leave a comment