patternreactCritical
sh: react-scripts: command not found after running npm start
Viewed 0 times
runningnpmscriptsfoundstartreactafternotcommand
Problem
I cloned a react application onto my system and ran following commands
After that i ran
But it threw the above mentioned error, It is working fine on my other system from which i pushed it on github. But it is not working on any other system after cloning whether windows or mac.
npm install -g create-react-app
npm install --save react react-domAfter that i ran
npm startBut it threw the above mentioned error, It is working fine on my other system from which i pushed it on github. But it is not working on any other system after cloning whether windows or mac.
Solution
Check if
Solution
run
Alternative Solution
If
node_modules directory exists. After a fresh clone, there will very likely be no node_modules (since these are .gitignore'd).Solution
run
npm install (or yarn) to ensure all deps are downloaded.Alternative Solution
If
node_modules exists, remove it with rm -rf node_modules and then run npm install (or yarn).Context
Stack Overflow Q#40546231, score: 715
Revisions (0)
No revisions yet.