私はreactnativeページのスターターガイドに従います。 コマンドreact-native run-ios
を実行すると、次のエラーが発生しました。
watchman--no-pretty get-sockname returned with exit code null dyld: Library not loaded: /usr/local/opt/pcre/lib/libpcre.1.dylib
Referenced from: /usr/local/Cellar/watchman/4.5.0/libexec/bin/watchman
Reason: image not found
ERROR watchman--no-pretty get-sockname returned with exit code null dyld: Library not loaded: /usr/local/opt/pcre/lib/libpcre.1.dylib
Referenced from: /usr/local/Cellar/watchman/4.5.0/libexec/bin/watchman
Reason: image not found
Error: watchman--no-pretty get-sockname returned with exit code null dyld: Library not loaded: /usr/local/opt/pcre/lib/libpcre.1.dylib
Referenced from: /usr/local/Cellar/watchman/4.5.0/libexec/bin/watchman
Reason: image not found
私のシステム:macos 10.11.6、ノード6.2.2
最も参考になるコメント
ここでの解決策
https://github.com/facebook/react-native/issues/2941