gpt4 book ai didi

reactjs - 命令 `brew install watchman` 运行 `chmod` 但最终安装失败

转载 作者:行者123 更新时间:2023-12-02 18:33:09 34 4
gpt4 key购买 nike

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

最佳答案

brew uninstall watchman
sudo chown -R `whoami` /usr/local
brew link pcre
brew install watchman

关于reactjs - 命令 `brew install watchman` 运行 `chmod` 但最终安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32105860/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com