search

Home  >  Q&A  >  body text

node.js - mac终端安装node时候,显示“-bash: brew: command not found”,怎么解决?

mac终端安装node时候,显示“-bash: brew: command not found”,怎么解决?

ringa_leeringa_lee2867 days ago889

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 13:15:48

    Install brew first

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 13:15:48

    Not installed Homebrew

    Execute under bash ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 13:15:48

    If brew not found appears:

    sudo find / -name brew # 查看是否存在 brew, 如果不存在就删除下述两个文件
    rm -rf /usr/local/Cellar
    rm -rf /usr/local/.git

    Then reinstall brew and it will be ok

    reply
    0
  • Cancelreply