系統(tǒng)版本
macOS 10.14及以上
情景
使用 brew install ** 指令
報(bào)錯
The following directories are not writable by your user:
/usr/local/share/man/man8
You should change the ownership of these directories to your user.
sudo chown -R $(whoami) /usr/local/share/man/man8
And make sure that your user has write permission.
chmod u+w /usr/local/share/man/man8
解決方案
使用如下指令獲取usr/local文件夾的寫入權(quán)限
sudo chown -R $(whoami) /usr/local/*
重新調(diào)用 brew install ** ,即可正常完成安裝
————————————————
版權(quán)聲明:本文為CSDN博主「CaesarWen」的原創(chuàng)文章,遵循CC 4.0 BY-SA版權(quán)協(xié)議滩报,轉(zhuǎn)載請附上原文出處鏈接及本聲明局冰。
原文鏈接:https://blog.csdn.net/pkorochi/article/details/83510834