brew安装守望者不工作

Sha*_*tel 2 facebook reactjs watchman react-native

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
Run Code Online (Sandbox Code Playgroud)

它试图做到chmod 777 /这一点并不好.为什么要这样做呢?不应该允许这样的感觉.我尝试卸载watchman并使用此命令重新安装以获得反应原生的开始工作.

按照以下步骤操作:https://github.com/facebook/react-native/issues/239

https://facebook.github.io/react-native/docs/troubleshooting.html

MTZ*_*TZ4 5

brew uninstall watchman
sudo chown -R `whoami` /usr/local
brew link pcre
brew install watchman
Run Code Online (Sandbox Code Playgroud)

  • 在 High Sierra 或更高版本中, sudo ```sudo chown -R `whoami` /usr/local``` 将失败。人们可能想使用 `sudo chown -R $(whoami) $(brew --prefix)/*` 来代替 (8认同)