分别输入:
>brew install node
>brew link node
后报错:
Linking /usr/local/Cellar/node/15.2.1...
Error: Could not symlink share/systemtap/tapset/node.stp
/usr/local/share/systemtap/tapset is not writable.
解决:
> chown -R <yourusername>:admin /usr/local/share/systemtap
> sudo rm -rf /usr/local/share/systemtap/tapset/node.stp
> brew link node
然后返回:
Linking /usr/local/Cellar/node/15.2.1... 7 symlinks created
大功告成