brew Error: /usr/local/share/doc/node is not writable.

brew安装nodejs的时候出现了一下错误

Error: Could not symlink share/doc/node/gdbinit
/usr/local/share/doc/node is not writable.
解决方式

运行一下命令

sudo chown -R $(whoami):admin /usr/local

之后brew doctor 来检查
如果和我一样提示让你link你的node 就进行下面一步
brew link --overwrite node
搞定

你可能感兴趣的:(brew Error: /usr/local/share/doc/node is not writable.)