react-scripts not found React Origin: On your device Last updated 13 Oct 2026

'react-scripts' is not recognized as an internal or external command / react-scripts: command not found

node_modules is missing or broken, so the react-scripts binary isn’t available.

Exact message you may see 'react-scripts' is not recognizedreact-scripts: command not foundsh: react-scripts: not found
Seen on: React

Meaning

Fresh clones need npm install. Corrupt installs or switching package managers can drop .bin links.

Common causes

  • npm install not run
  • Corrupted node_modules
  • Mixed package managers (yarn.lock + package-lock)

⚡ Quick fix

  1. npm install (or npm ci)
  2. Delete node_modules and reinstall
  3. Consider migrating from CRA to Vite

Detailed fix by platform

React

  1. rm -rf node_modules package-lock.json && npm install

How to diagnose

  1. Installed — node_modules/.bin/react-scripts exists?
  2. Recent change — Did it start after a deploy, upgrade, or configuration change? Compare with the last working version.

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

command not found — bash: command not found (Linux)command not foundCOPY failed — COPY failed: file not found in build context / "/app/x": not found (Docker)COPY failedERR_OSSL_EVP_UNSUPPORTED — Error: error:0308010C:digital envelope routines::unsupported (Node.js)ERR_OSSL_EVP_UNSUPPOR…Gradle wrapper main class — Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain (Java)Gradle wrapper main c…lookup registry-1.docker.io: no such host — dial tcp: lookup registry-1.docker.io: no such host / Temporary failure in name resolution during docker build (Docker)lookup registry-1.doc…Module parse failed — Module parse failed: Unexpected token. You may need an appropriate loader to handle this file type (React)Module parse failedMSB3027 — error MSB3027: Could not copy "obj\...\App.dll" to "bin\...\App.dll". Exceeded retry count of 10. The file is locked by: "App (1234)" (.NET)MSB3027NETSDK1045 — error NETSDK1045: The current .NET SDK does not support targeting .NET 8.0. Either target .NET 7.0 or lower, or use a version of the .NET SDK that supports .NET 8.0 (.NET)NETSDK1045react-scr…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.