brew install --HEAD watchman
==> Cloning https://github.com/facebook/watchman.git
Updating /Library/Caches/Homebrew/watchman--git
==> Checking out branch master
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/watchman/HEAD --with-pcre
==> make
==> make install
install: chmod 777 /: Operation not permitted
touch //.not-empty
touch: //.not-empty: Permission denied
make[1]: *** [install-exec-local] Error 1
make: *** [install-am] Error 2
couldn't understand kern.osversion `14.5.0'
READ THIS: https://git.io/brew-troubleshooting
它正在尝试chmod 777 /
哪个不好。为什么要这样做?感觉不应该被允许。我尝试卸载 watchman 并使用此命令重新安装以使 react-native 开始工作。
在此处执行步骤:https ://github.com/facebook/react-native/issues/239
https://facebook.github.io/react-native/docs/troubleshooting.html