Skip to content
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.

npm start doesn't works #52

Open
kvedantmahajan opened this issue Nov 25, 2018 · 5 comments
Open

npm start doesn't works #52

kvedantmahajan opened this issue Nov 25, 2018 · 5 comments
Labels
help wanted Extra attention is needed needs investigation

Comments

@kvedantmahajan
Copy link

kvedantmahajan commented Nov 25, 2018

On windows, this project ran fine.

However, on my Mac. Following the same steps gives me an error


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/vedant/.npm/_logs/2018-11-25T05_46_33_446Z-debug.log

I tried

1. rm -rf node-modules && npm install && npm start
2. npm i -D react-scripts && npm start

And it still fails

@kentcdodds kentcdodds added help wanted Extra attention is needed needs investigation labels Nov 25, 2018
@spacebromx
Copy link

@kushalmahajan could you provide more details about that error? It might be a conflict in the dependency tree. I was getting a similar error because of a conflict with the eslint version.

I edited the package.json file, and changed the react-scripts version manually to 1.1.4 and that did the trick for me.

@kvedantmahajan
Copy link
Author

I lost track of it after all this time :(

@benhalverson
Copy link

i wasn't able to reproduce this
I'm on OSX 10.14.3
node 11.10.0
git version 2.18.0
npm version 6.8.0

@ATakaSKY
Copy link

Even I had the same issue today. @spacebromx solution helped though.

@vj-abishek
Copy link

Try to delete the node_modules folder and reinstall the dependencies.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed needs investigation
Projects
None yet
Development

No branches or pull requests

6 participants