create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

yarn start | npm start fail after installing dependencies

Open Cbhansen opened this issue 9 years ago • 4 comments

With the create-react-app cli, I'm running into a new and strange error.

I get this error after I install dependencies. And once I try to run the 'yarn start' or 'npm start' command, it no longer works. This has been tested many times on my end, and it's definitely a problem ONLY after I install dependencies. For example, installing react-router-dom or firebase.

Before I try to install these dependencies, everything works fine. I simply cd into my-app, yarn start and everything get's loaded. Immediately after I install any dependencies, the same commands run into the above errors. HELP! Thank you. xD

Chriss-MBP:my-app cbh17sen$ yarn start yarn start v0.27.5 $ react-scripts start sh: react-scripts: command not found error Command failed with exit code 127.


sh: react-scripts: command not found npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! [email protected] start: react-scripts start npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/cbh17sen/.npm/_logs/2017-09-21T07_47_43_921Z-debug.log

Cbhansen avatar Sep 21 '17 07:09 Cbhansen

Please follow the issue template so we may assist you.

Timer avatar Sep 21 '17 12:09 Timer

I am getting the same erro

inventanew avatar Dec 04 '17 19:12 inventanew

I had to type npm install in the terminal and then it worked

inventanew avatar Dec 04 '17 19:12 inventanew

no help from team on this?

anthonybrown avatar May 11 '18 10:05 anthonybrown