【问题标题】:Why can I not install Node with Homebrew?为什么我不能用 Homebrew 安装 Node?
【发布时间】:2018-12-18 04:27:34
【问题描述】:

我能够成功下载自制软件。但是,每当我使用 'brew install node' 时,都会收到错误消息:

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

我也尝试过“brew link node”,结果是:

Error: Could not symlink share/systemtap/tapset/node.stp
/usr/local/share/systemtap/tapset is not writable.

有人可以帮忙吗?

【问题讨论】:

    标签: reactjs terminal homebrew


    【解决方案1】:

    解决方法在官方troubleshooting page of Homebrew。您必须授予 Homebrew 在/usr/local 中写入的权利。为此,运行的官方命令是:

    cd /usr/local && sudo chown -R $(whoami) bin etc include lib sbin share var opt Cellar Caskroom Frameworks
    

    如果/usr/local中没有安装依赖特定权限的应用,也可以运行:

    sudo chown -R $(whoami) /usr/local/*
    

    【讨论】:

      猜你喜欢
      • 2019-05-13
      • 1970-01-01
      • 2018-05-14
      • 2021-02-26
      • 2018-02-27
      • 2016-10-11
      • 1970-01-01
      • 1970-01-01
      • 2015-10-14
      相关资源
      最近更新 更多