I'm not a fan of closing everything, so I dig further.
All I needed to do was my terminal window, I ran this command:
../lala/node_modules/react-native/packager/launchPackager.command ; exit;
My project name was "lala", so find node_modules in your project.
replace lala with the name of your project, it should work.
If there is an error, says that the port is already in use:
ERROR Packager can't listen on port 8081
Then you have two options:
- Kill an already running program.
- Or change the port by going to:
../lala/node_modules/react-native/packager/packager.js , then find the port number, example 8081, and replace the port number that is not used.
var options = parseCommandLine([{ command: 'port', default: 8082, }, {
Save this file and run the above command again.
That way, I can run multiple reactions (ors).
codebased May 10 '15 at 9:52 2015-05-10 09:52
source share