react-native: npm start doesn't work after upgrade to 0.15.0
npm start
stopped working after upgrading to React-Native 0.15.0 yielding:
> AwesomeProject@0.0.1 start Dev/tmp/AwesomeProject
> react-native start
Looks like you installed react-native globally, maybe you meant react-native-cli?
To fix the issue, run:
npm uninstall -g react-native
npm install -g react-native-cli
Output of npm -g list --depth=0
:
/usr/local/lib
├── bower@1.6.5
├── grunt-cli@0.1.13
├── npm@3.5.0
└── react-native-cli@0.1.7
Output of npm list --depth=0
:
AwesomeProject@0.0.1 Dev/tmp/AwesomeProject
└── react-native@0.16.0-rc
To be noted, using react-native start
works as expected, which make me think this is a npm bug but I’m not sure on how to get started.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 17 (10 by maintainers)
Try adding react-native-cli to your (dev) dependencies.
Something went fishy with today’s build. I had to:
npm un react-native-cli
andnpm i react-native-cli
FYI for others.@GantMan same thing happened to me too. Reinstalling
react-native-cli
once you updatereact-native
solves the problem as you mentioned.