尝试通过自制程序重新安装节点时遇到此错误。
$ brew install node
==> Downloading https://homebrew.bintray.com/bottles/node-8.4.0.sierra.bottle.tar.gz
Already downloaded: /Users/Duncan/Library/Caches/Homebrew/node-8.4.0.sierra.bottle.tar.gz
==> Pouring node-8.4.0.sierra.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/systemtap/tapset/node.stp
/usr/local/share/systemtap/tapset is not writable.
You can try again using:
brew link node
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
/usr/local/Cellar/node/8.4.0: 4,152 files, 47.3MB
Duncans-MBP-5:~ Duncan$ brew link node
Linking /usr/local/Cellar/node/8.4.0...
Error: Could not symlink share/systemtap/tapset/node.stp
/usr/local/share/systemtap/tapset is not writable.
正在运行node -v
确认它未安装。你如何纠正这个错误?我不确定如何解释Could not symlink
答案 0 :(得分:2)
最后几行说明了原因:“/ usr / local / share / systemtap / tapset不可写。”
因此您无权在该目录中书写。
如果你想在没有root权限的情况下运行Homebrew,你应该{J} chown
你的UID,或者你应该让你的UID所在的组可写(通常是{{1}我认为)。
前者:
/usr/local/share/systemtap
后者:
staff