美文网首页
homebrew 安装指定版本node

homebrew 安装指定版本node

作者: Light_boy | 来源:发表于2019-09-27 15:54 被阅读0次

1.如果之前使用brew install node安装过node,需要先执行brew unlink node来'解绑'node

2.查找可用的node版本 brew search node

3.安装你需要的版本, 比如 brew install node@8

4.然后 brew link node@8, 这一步可能会报错, 按照提示执行命令就ok了, 比如我最后执行的是brew link --overwrite --force node@8

5.node -v 查看你想要的node版本

相关文章

网友评论

      本文标题:homebrew 安装指定版本node

      本文链接:https://www.haomeiwen.com/subject/gekauctx.html