react-native: v0.15.0 - Inaccurate error with "Looks like you installed react-native globally"
Seems to be an odd bug when running with npm start
vs. react-native start
(perhaps due to it using react-native
from the ./node_modules/.bin/react-native
folder?
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 16 (10 by maintainers)
Commits related to this issue
- fix due to https://github.com/facebook/react-native/issues/4515 — committed to oklas/mobileapp by deleted user 7 years ago
one workaround is to
npm install --save-dev react-native-cli
npm start
is defined in your package.json,"start": "react-native start"
is wrong due to a bug I introduced in an older version of the global CLI, please change that to:The new global CLI will generate package.json like that, sorry about the breakage!
To upgrade:
(and fix package.json for all your apps)
If this doesn’t resolve the issue let’s reopen.
I don’t understand why
"react-native-cli"
would be in the dependencies or dev dependencies of your app. Your app doesn’t need the CLI.