question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm start fails: sh: react-scripts: command not found

See original GitHub issue

Is this a bug report?

Yes

Can you also reproduce the problem with npm 4.x?

yes

Which terms did you search for in User Guide?

(Write your answer here if relevant.)

Environment

  1. node -v: v6.11.1
  2. npm -v: 5.3.0
  3. yarn --version (if you use Yarn):
  4. npm ls react-scripts (if you haven’t ejected): 1.0.14

Then, specify:

  1. Operating system: OSX Sierra 10.12.6
  2. Browser and version (if relevant):

Steps to Reproduce

(Write your steps here:)

  1. npm install -g create-react-app
  2. create-react-app my-app … cd my-app/
  3. npm start

Expected Behavior

(Write what you thought would happen.)

Starts the development server.

Actual Behavior

(Write what happened. Please add screenshots!)

screen shot 2017-10-09 at 11 55 51

2017-10-09T08_48_47_494Z-debug.log

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:21 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
JulienDemarquecommented, Oct 18, 2017

react-scripts are there but the commant didn’t work, did you mean “npm react-scripts start”?

Juliens-MacBook-Pro:node_modules juliendemarque$ cd .bin Juliens-MacBook-Pro:.bin juliendemarque$ ls acorn errno html-minifier mime semver uglifyjs ansi-html escodegen jest mkdirp sha.js uuid babylon esgenerate jest-runtime multicast-dns sshpk-conv webpack browserslist eslint js-yaml rc sshpk-sign webpack-dev-server cssesc esparse jsesc react-scripts sshpk-verify which csso esvalidate json5 regjsparser strip-indent detect handlebars loose-envify rimraf svgo detect-port he miller-rabin sane sw-precache Juliens-MacBook-Pro:.bin juliendemarque$ react-scripts start -bash: react-scripts: command not found Juliens-MacBook-Pro:.bin juliendemarque$

1reaction
marcelorlcommented, Oct 18, 2017

one more:

if you navigate to node_modules/.bin/ can you find the file react-scripts in there?

what if you try running: node_modules/.bin/react-scripts start is there any issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-scripts: command not found - Stack Overflow
My issue was caused by me using npx create-react-app app-name inside of a folder named "npm/node" or npm:node . Using the command in...
Read more >
[Solved] react-scripts: command not found - ItsJavaScript
If you are trying to run the react project using the npm start command on your terminal, you might have got an error...
Read more >
Fix: React Scripts Command not Found Error - αlphαrithms
Quick Intro: React Apps Setup 101 · The Problem: Running a React-Scripts Command · Fix 1: Run npm install · Fix 2: Delete...
Read more >
sh: react-scripts: command not found after running npm start ...
The quick way to fix the react-scripts: command not found error is to delete package-lock.json and node_modules and re-run npm install . However,...
Read more >
How to fix the react-scripts command not found Error - Reactgo
How to fix the react-scripts command not found Error · First, delete the node_modules folder in your project (if you have one) using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found