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
Please follow the issue template so we may assist you.
I am getting the same erro
I had to type npm install in the terminal and then it worked
no help from team on this?
Most helpful comment
I had to type npm install in the terminal and then it worked