我试图用自制安装Node.js的(我安装了它以前不使用BREW,我已经试过删除所有这些文件)。我看过以前的问题,提出类似的问题,但我一直无法让他们工作。首先我想brew link node
这给了我:麻烦安装的node.js用自制
[email protected]:~$ brew link node
Linking /usr/local/Cellar/node/0.12.6...
Error: Could not symlink share/systemtap/tapset/node.stp
Target /usr/local/share/systemtap/tapset/node.stp
already exists. You may want to remove it:
rm '/usr/local/share/systemtap/tapset/node.stp'
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
,然后当我运行brew link --overwrite node
我得到如下:
[email protected]:~$ brew link --overwrite node
Linking /usr/local/Cellar/node/0.12.6...
Error: Could not symlink share/systemtap/tapset/node.stp
/usr/local/share/systemtap/tapset is not writable.
此外,当我尝试使用brew link -n node
找到文件,手动删除,我设法删除其中的一些,但我仍然留下以下文件,我不能删除:
[email protected]:~$ brew link -n node
Would link:
/usr/local/etc/bash_completion.d/npm
/usr/local/bin/node
/usr/local/include/node
/usr/local/share/man/man1/node.1
/usr/local/share/systemtap/tapset/node.stp
/usr/local/lib/dtrace/node.d
当我尝试删除我得到以下g(所有这些文件都是相同的):
[email protected]:~$ rm /usr/local/etc/bash_completion.d/npm
rm: /usr/local/etc/bash_completion.d/npm: No such file or directory
我该怎么办?
为什么要使用brew? – Qualcuno