`yarn start` fails with error message
See original GitHub issueDescription
yarn start
fails with below message
yarn start v0.15.1 $ “react-scripts start” sh: react-scripts start: command not found error Command failed with exit code 127. info Visit http://yarnpkg.com/en/docs/cli/start for documentation about this command.
Expected behavior
According to the prompt after creating a project, yarn star
should work.
We suggest that you begin by typing: cd xyz yarn start Happy hacking!
Actual behavior
Tell us what actually happens.
Environment
node -v
v7.2.0
npm -v
3.10.9
create-react-app --version
create-react-app version: 1.0.0
Operating system: MacOSX 10.12.1
Reproducible Demo
- Globally install
create-react-app
and create one project calledxyz
. - Follow the prompt instructions;
yarn start
fails, butnpm start
works.
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Error: yarn start - error Command "start" not found
this error happens when you're running yarn start in a wrong directory instead of the root directory where package.json is. if they didn't...
Read more >Error Codes | Yarn - Package Manager
This error is usually caused by a Yarn plugin being missing. YN0011 - FETCHER_NOT_FOUND. A fetcher cannot be found for the given package....
Read more >Yarn Start not working : r/react - Reddit
First, it sounds like you have not defined a start script in your package.json. You should add the "start" script in the "scripts"...
Read more >Getting error messages when running yarn commands
json', requestPath: 'yargs' } error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this ...
Read more >Old React App Not Starting | Solution | Yarn Start Error
I created this app one and half year ago. I used create-reat-app to start this react project. Node JS has been upgraded, react...
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 FreeTop 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
Top GitHub Comments
worked for me after running just the command
yarn
in project folderI had a similar problem, caused by installing a package using npm instead of yarn, which is what I was using for this project. I got the react script not found error message and the server would not start. To fix it, I ran yarn, then ran yarn start and the server restarted. SUCCESS 😃