【发布时间】:2021-04-17 12:29:19
【问题描述】:
按照通常的tutorial 进行节点安装时,我收到以下错误:
➜ ~ node
zsh: command not found: node
➜ ~ brew install node
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Updated Casks
Updated 1 cask.
Warning: node 15.5.1 is already installed, it's just not linked
You can use `brew link node` to link this version.
➜ ~ brew link node
Linking /usr/local/Cellar/node/15.5.1...
Error: Could not symlink include/node/cppgc/allocation.h
Target /usr/local/include/node/cppgc/allocation.h
already exists. You may want to remove it:
rm '/usr/local/include/node/cppgc/allocation.h'
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
Linking /usr/local/Cellar/node/15.5.1...
Error: Could not symlink include/node/cppgc/allocation.h
/usr/local/include/node/cppgc is not writable.
我需要修复权限吗?目前只有我一个人遇到这个问题吗?
【问题讨论】:
-
你试过
brew uninstall node然后brew install node吗? -
是的,我做了,但没有帮助,但为了解决它,我按照此处描述的步骤修复 brew:*.com/questions/32849741/…
-
尝试错误消息中指定的
rm '/usr/local/include/node/cppgc/allocation.h',然后重试以brew link node链接节点
标签: node.js homebrew macos-big-sur