search

Home  >  Q&A  >  body text

Mac pro failed to install node.js, how to solve it? git is available

执行ruby -e "$(curl -fsSL https://raw.githubusercontent...)"

==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew

Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
/usr/local/Homebrew/.git: Permission denied
Failed during: git init -q

高洛峰高洛峰2756 days ago650

reply all(3)I'll reply

  • 高洛峰

    高洛峰2017-05-16 13:36:44

    Isn’t there an installed version of nodejs? Try the installed version

    reply
    0
  • 世界只因有你

    世界只因有你2017-05-16 13:36:44

    Add sudo before the command and try again

    reply
    0
  • 某草草

    某草草2017-05-16 13:36:44

    After struggling for a long time, the problem is: /usr/local/Homebrew/ does not have permissions. Solve sudo chown -R

    reply
    0
  • Cancelreply