Create React App requires Node 14 or higher error [Solved]

avatar
Borislav Hadzhiev

Last updated: Apr 7, 2024
2 min

banner

# Create React App requires Node 14 or higher error [Solved]

The error "Create React App requires Node 14 or higher. Please update your version of Node" occurs because your version of Node.js is older than the minimum required by Create React App version.

To solve the error, update your versions of npm and Node.js.

shell
You are running Node 13.14.0. Create React App requires Node 14 or higher. Please update your version of Node.

At the time of writing, Create React app requires you to use Node.js >= 14.0.0 and npm >= 5.6.

You can check the requirements of the package in this section of the docs.

You can use the node --version and npm --version commands to check your versions of Node.js and npm.

shell
node --version npm --version

# Update your version of npm

The first thing you should try is to update your version of npm.

shell
npm install -g npm@latest # 👇️ If you get a permissions error on macOS/Linux sudo npm install -g npm@latest

update npm version

If you get a permissions error on Windows, open CMD as an administrator and rerun the command.

To open CMD as an administrator:

  1. Click on the Search bar and type CMD.

  2. Right-click on the Command Prompt application and click "Run as administrator".

run cmd as administrator

  1. Rerun the command.
shell
npm install -g npm@latest npm install -g npm@latest --force

If the error persists, you have to update your version of Node.js to the long-term supported version.

You can use the node --version command to get your Node.js version.

shell
node --version

get node version

# Update your version of Node.js

If you use nvm, you can update your version of Node.js and npm with the following 2 commands.

shell
nvm install --lts nvm use --lts

install lts node js version

Want to learn more about installing and using NVM? Check out these resources: Install NVM on macOS and Linux,Install NVM on Windows.

You can also use the n package to manage your Node.js version.

shell
npm cache clean -f npm install -g n n stable

If you get a permissions error when issuing the commands, open CMD as an administrator (Windows) or prefix the commands with sudo (macOS and Linux).

shell
sudo npm cache clean -f sudo npm install -g n sudo n stable

Alternatively, you can download the long-term supported version of Node.js from the official nodejs.org website.

If the error persists, update your version of create-react-app.

I wrote a book in which I share everything I know about how to become a better, more efficient programmer.
book cover
You can use the search field on my Home Page to filter through all of my articles.