繁体   English   中英

安装节点时,自制软件显示符号链接错误

[英]homebrew shows a symlink error when installing node

在尝试通过自制程序重新安装节点时,我遇到此错误。

$ 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

最后一行几乎说明了原因: “ / usr / local / share / systemtap / tapset不可写。”

因此,您没有写该目录的权限。

如果你想没有root权限运行自制,就应该把chown /usr/local/share/systemtap到你的UID,还是应该使其可写为一组,你的UID是在(通常是staff ,我认为)。

前者:

sudo chown -R $USER /usr/local/share/systemtap

后者:

sudo chgrp -R staff /usr/local/share/systemtap
sudo chmod -R g+w /usr/local/share/systemtap

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM