Mac pro 安装node.js失败,怎么解决?git 是能够使用的

浏览:46日期:2022-09-12

问题描述

执行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 deniedFailed during: git init -q

问题解答

回答1:

nodejs不是有安装版本的吗?试一下安装版本的

回答2:

命令前加 sudo 再试试

回答3:

折腾好久,问题:/usr/local/Homebrew/没有权限。解决sudo chown -R

相关文章: