LoginSignup
0
0

More than 5 years have passed since last update.

macでReactNativeを試そうとしたらいきなりハマった(react-native initでフリーズ)

Posted at

出だしのreact-native init <project名> からハマった。

─ resolve@1.3.2
├─ rimraf@2.6.1
├─ semver@5.3.0
├─ shellwords@0.1.0
├─ source-map@0.5.6
├─ sprintf-js@1.0.3
├─ string-length@1.0.1
├─ strip-bom@3.0.0
├─ symbol-tree@3.2.2
├─ test-exclude@4.0.3
├─ tough-cookie@2.3.2
├─ tr46@0.0.3
├─ type-check@0.3.2
├─ uglify-js@2.8.21
├─ webidl-conversions@4.0.1
├─ whatwg-encoding@1.0.1
├─ whatwg-url@4.6.0
├─ which@1.2.14
├─ wordwrap@1.0.0
├─ xml-name-validator@2.0.1
└─ yargs@6.6.0
✨  Done in 6.40s.

上記のようにDoneとでてからフリーズ状態になりました。

結論から言うとwatchmanがフリーズしていた模様

対応策

以下のコマンドを実行

launchctl unload ~/Library/LaunchAgents/com.github.facebook.watchman.plist

watchman versionで versionが出ればok.

watchman version                                                                                                               /Users/m0a/Library/LaunchAgents/com.github.facebook.watchman.plist: Could not find specified service
{
    "version": "4.7.0"
}

参考:https://github.com/facebook/watchman/issues/371

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0