Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Packager won't start

Tags:

react-native

I guess I upgraded node at some point and now when I try to run the packager with npm start it's complaining with:

$ npm start
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

Node 5.1.0, npm 3.3.12 and react-native 0.15.0

like image 823
rainkinz Avatar asked Nov 25 '15 04:11

rainkinz


2 Answers

It looks like the preferred way to start the packager now for an IOS app is by hitting the run button in xcode itself or using the following command:

react-native start

like image 162
rainkinz Avatar answered Oct 29 '22 03:10

rainkinz


I'm using:

"scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start"
}
like image 30
user552403 Avatar answered Oct 29 '22 03:10

user552403