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

sh: react-scripts: command not found

Open mdmasumbillah opened this issue 7 years ago • 3 comments

I'm tried with this error and spend huge time.

my node and npm version are **-Masum:myApp userName$ node --version v10.15.1 **-Masum:myApp userName$ npm --version 6.4.1

**-Masum:myApp userName$ npm start

[email protected] start /Users/userName/dev/myApp react-scripts start

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/masum/.npm/_logs/2019-01-30T12_17_20_182Z-debug.log

mdmasumbillah avatar Jan 30 '19 12:01 mdmasumbillah

Try posting the full log, you might have more chance of a response. There's no information to diagnose anything, just a notification that the script failed.

roberthchapman avatar Jan 30 '19 14:01 roberthchapman

Hi @mdmasumbillah, it sounds like your dependencies are not correctly installed.

How did you install CRA? Can you share the project with us?

mrmckeb avatar Jan 30 '19 14:01 mrmckeb

@roberthchapman and @mrmckeb Thanks for your reply. Already solved this.

mdmasumbillah avatar Jan 31 '19 08:01 mdmasumbillah