入职新公司,在新电脑上安装rn环境的时候,使用brew安装Watchman的时候,报错
Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
最初百度出来的解决方案是
sudo chown -R $(whoami) /usr/local
报错
/usr/local: Operation not permitted
最终找到的解决方案是更换命令,使用
(原地址)
sudo chown -R $(whoami) $(brew --prefix)/*
问题解决





近期评论