【问题标题】:Installing node.js via homebrew - Unlinked kegs通过自制软件安装 node.js - 未链接的小桶
【发布时间】:2020-03-17 17:29:53
【问题描述】:

我正在努力在我的机器 (macOS Catalina) 上安装 node.js。当我酿造医生时,我收到一条警告说我有未链接的小桶。我试图修复它,但这是不可能的。 我应该忽略它还是有办法解决它?

这就是我得到的提示:

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  node
Wicleices-iMac:usr wfabio$ brew link node
Linking /usr/local/Cellar/node/13.11.0... 

Error: Could not symlink lib/dtrace/node.d
Target /usr/local/lib/dtrace/node.d
already exists. You may want to remove it:
  rm '/usr/local/lib/dtrace/node.d'

To force the link and overwrite all conflicting files:
  brew link --overwrite node


To list all files that would be deleted:
  brew link --overwrite --dry-run node
Wicleices-iMac:usr wfabio$ brew link --overwrite node
Linking /usr/local/Cellar/node/13.11.0... 

Error: Could not symlink lib/dtrace/node.d
/usr/local/lib/dtrace is not writable.

snapshot for the above error

谢谢!

【问题讨论】:

    标签: node.js homebrew


    【解决方案1】:

    在你的情况下,你需要运行:

    sudo chmod +w /usr/local/
    

    它会解决目录问题。

    一般来说,整理 Homebrew 的权限也很好:

    sudo chown -R "$USER":admin /Users/$USER/Library
    sudo chown -R "$USER":admin /usr/local
    

    如果有帮助,请告诉我。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-01-11
      • 2020-11-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多