【发布时间】: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.
谢谢!
【问题讨论】: