報(bào)錯(cuò)
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/lzma
/usr/local/include is not writable.
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/lib
Error: Permission denied @ dir_s_mkdir - /usr/local/lib
總結(jié)來說就是文件權(quán)限問題
so 根據(jù)提示mkdir文件夾并開放權(quán)限
sudo chown -R whoami /usr/local
sudo mkdir /usr/local/lib
sudo chown $(whoami):admin /usr/local/lib
over
then
brew link --overwrite watchman
看一下是否已經(jīng)link到watchman
沒有的話你就會(huì)看到一個(gè)ERROR
Error: No such keg: /usr/local/Cellar/watchman
接著執(zhí)行安裝
brew install watchman
成功后再執(zhí)行brew link --overwrite watchman你就會(huì)看到
Warning: Already linked: /usr/local/Cellar/watchman/4.9.0_2
To relink: brew unlink watchman && brew link watchman
成功啦箱亿,還順便告訴你要unlink的話就:brew unlink watchman