Last updated: Apr 7, 2024
Reading time·2 min
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.
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.
node --version npm --version
npm
The first thing you should try is to update your version of npm
.
npm install -g npm@latest # 👇️ If you get a permissions error on macOS/Linux sudo npm install -g npm@latest
If you get a permissions error on Windows, open CMD as an administrator and rerun the command.
To open CMD as an administrator:
Click on the Search bar and type CMD.
Right-click on the Command Prompt application and click "Run as administrator".
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.
node --version
If you use nvm
, you can update your version of Node.js and npm
with the
following 2 commands.
nvm install --lts nvm use --lts
You can also use the n package to manage your Node.js version.
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).
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.