kentcdodds/advanced-react-patterns-v2

npm start doesn't works

Open

#52 geöffnet am 25. Nov. 2018

Auf GitHub ansehen
 (5 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (578 Forks)batch import
help wantedneeds investigation

Repository-Metriken

Stars
 (1.504 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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! advanced-react-patterns-v2@1.0.0 start: `react-scripts start`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the advanced-react-patterns-v2@1.0.0 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

Contributor Guide