➜ ~ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-e:77: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040677
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
The current contents of /usr/local are bin CODEOFCONDUCT.md etc git lib Library LICENSE.txt munki README.md sbin share .git .github .gitignore
➜ ~ brew install maven
zsh: command not found: brew
当前回答
今天早上我也遇到了同样的问题。问题是自制程序的路径设置不正确。
遵循以下步骤
1.正确安装自制软件。在cmd下面的终端类型中。
ruby / usr / bin / e,“美元(卷毛-fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
在.zshrc文件中设置终端类型的路径 打开~ / . zshrc 在.zshrc文件中添加如下路径 导出路径= " / usr /地方/ bin:美元路径” 在终端类型源~/.zshrc 这样就完成了。
其他回答
运行以下设置,然后就可以使用brew了
执行unintsall脚本:-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
设置Git Compression:- Git config——global core.compression 0
设置Git缓冲区大小:- Git config——global http。postBuffer 1048576000
运行安装脚本:— /bin/bash -c $(curl - ssl https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
你的电脑上已经安装了自制软件。你需要像这样修改你的PATH:
export PATH=/usr/local/bin:$PATH
或者从起始点执行brew:
/usr/local/bin/brew install maven
您应该同时将/opt/homebrew/bin和/opt/homebrew/sbin添加到$PATH env中。
导出路径= / opt /组装/ bin: / opt /组装/ sbin: $路径
快捷方式:运行command
echo export PATH=$PATH:/opt/homebrew/bin:/opt/homebrew/sbin >> ~/.zshrc . sh
然后运行酿酒医生检查
在Apple M1的fish shell中,我必须将/opt/homebrew/bin添加到fish_user_paths全局环境中。我必须手动这样做,因为set -U fish_user_paths /opt/homebrew/bin $fish_user_paths got
设置:通用变量fish_user_paths被同名的全局变量遮蔽。
我只是做了echo 'eval ' $(/home/linuxbrew/。linuxbrew / bin /酿造shellenv)' >> ~/。zshrc,因为我正在使用哦-我的zsh。这样做之后应该就可以使用冲泡了。
推荐文章
- 警告用户/local/mysql/data目录不属于mysql用户
- 崇高的文本从命令行
- 在Mac OS X上使用鼠标聚焦(加上自动提升)
- 我在哪里可以找到Mac OS X Lion的“make”程序?
- 当我没有Mac的时候,在Mac/Safari上测试web应用程序
- 在Mac上安装MySQL后,使用ALTER USER语句重置MySQL root密码
- my.cnf文件在macOS上的位置
- 如何从Mac OS X上卸载MySQL ?
- Git bash错误:无法fork子进程:没有可用的终端(-1)
- 使用grep删除空行
- 查找当前可执行文件的路径,不包含/proc/self/exe
- 我如何安装imagemagick与自制?
- Git在终端提交时打开VIM,但无法返回终端
- 在Mac上安装R -警告消息:设置LC_CTYPE失败,使用“C”
- 为什么cURL返回错误“(23)Failed writing body”?