npm start fails: sh: react-scripts: command not found
See original GitHub issueIs 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
node -v
: v6.11.1npm -v
: 5.3.0yarn --version
(if you use Yarn):npm ls react-scripts
(if you haven’t ejected): 1.0.14
Then, specify:
- Operating system: OSX Sierra 10.12.6
- Browser and version (if relevant):
Steps to Reproduce
(Write your steps here:)
- npm install -g create-react-app
- create-react-app my-app … cd my-app/
- npm start
Expected Behavior
(Write what you thought would happen.)
Starts the development server.
Actual Behavior
(Write what happened. Please add screenshots!)
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:
- Created 6 years ago
- Comments:21 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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$
one more:
if you navigate to
node_modules/.bin/
can you find the filereact-scripts
in there?what if you try running:
node_modules/.bin/react-scripts start
is there any issue?