记录一次mac安装node遇到的错误

 使用命令brew install node安装node,报如下错误 

 Could not symlink share/systemtap/tapset/node.stp

 做了各项操作都没有解决,比如

  1、brew uninstall node

  2、删除node、npm的所有文件

最后发现是用户权限问题,进行文件授权

$ chown -R <yourusername>:admin /usr/local/share/systemtap
$ sudo rm -rf /usr/local/share/systemtap/tapset/node.stp
$ brew link node

最后运行node -v,查看是否成功

posted @ 2020-01-02 12:18  酷学大叔  阅读(949)  评论(0编辑  收藏  举报