React-native: Terminal react-native run-ios,run-android not working

Created on 23 Sep 2016  路  14Comments  路  Source: facebook/react-native

Terminal react-native run-ios,run-android not working

  • React Native version: [0.33.0]
  • Platform(s) (iOS, Android, or both?): [IOS,Android]
  • Operating System (macOS, Linux, or Windows?): [macOS]
Locked

Most helpful comment

Uninstalling and reinstalling Watchman fixed this issue for me.

All 14 comments

image

image

Does the react-native run-ios command just hang like that or does it give error output after a while? Same question for react-native run-android?

Have you recently upgraded to the latest macOS? I know this usually causes some terminal commands to stop working, so maybe it's something like that hidden underneath.

@Kuzmin
image

watchman 4.7.0
After uninstall watchman run normal
But app opens the flash back

uninstall watchman
notwatchman

install watchman
watchman

Looks like it's some kind of issue with watchman then, I suppose. Good debugging, makes it easier for the dev team to fix! Now we just need to wait for them to see the issue. (I'm not actively contributing code, just trying to help out triaging issues.) 馃槃

saw the same issue

https://github.com/facebook/react-native/blob/9ee815f6b52e0c2417c04e5a05e1e31df26daed2/packager/react-packager/src/node-haste/FileWatcher/index.js#L20

watchman version just hangs for me here
the process doesn't end so the code never executes past line 26

I was able to get it working using the instructions here https://github.com/facebook/watchman/issues/376 :

sudo launchctl unload -F ~root/Library/LaunchAgents/com.github.facebook.watchman.plist

Don't know enough about watchman to understand why it was running as a service. But it worked anyway.

Uninstalling and reinstalling Watchman fixed this issue for me.

This is retarded, react-native doesn't show any feedback on what is not working within its internals, there is no --verbose flag either.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anchetaWern picture anchetaWern  路  3Comments

axelg12 picture axelg12  路  3Comments

josev55 picture josev55  路  3Comments

oney picture oney  路  3Comments

jlongster picture jlongster  路  3Comments