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

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

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

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

  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,查看是否成功

相关文章:

  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2022-01-20
猜你喜欢
  • 2021-07-02
  • 2021-09-21
  • 2021-06-17
  • 2021-04-15
  • 2022-03-03
  • 2022-12-23
  • 2022-01-05
相关资源
相似解决方案