提示信息:
Error: The
brew linkstep did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink share/doc/node/gdbinit /usr/local/share/doc/node is not writable.
sudo chmod 776 /usr/local/lib
brew link --overwrite node
Outputs: Linking /usr/local/Cellar/node/9.6.1... 49 symlinks created
sudo chmod 755 /usr/local/lib
本文详细介绍了在使用brew安装Node.js时遇到的链接错误问题及其解决方案。错误信息显示,尽管公式已成功构建,但未能将文件链接到/usr/local目录下,原因是目标目录不可写。文章提供了具体的命令行解决方案,包括使用sudo chmod修改目录权限,以及通过brew link --overwrite强制链接。
1739

被折叠的 条评论
为什么被折叠?



