homebrew - 通过设置 HOMEBREW_NO_INSTALL_CLEANUP 禁用此行为

标签 homebrew

每次我在终端上运行 brew 命令时,我都会不断收到此消息:

Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

我已经在 ~/.zshrc 中设置了变量 export HOMEBREW_NO_INSTALL_CLEANUP=TRUE

是否应该将HOMEBREW_NO_INSTALL_CLEANUP设置为false

提前致谢。

最佳答案

我认为这是你的 shell 问题,export HOMEBREW_NO_INSTALL_CLEANUP=TRUE 在终端 session 和 ~/.bash_profile 中都适用于我(我正在使用 bash)。

您可以通过 echo $SHELL 验证您的默认 shell。

关于homebrew - 通过设置 HOMEBREW_NO_INSTALL_CLEANUP 禁用此行为,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71872726/

相关文章:

Homebrew 未编译文件

python - 找不到 PythonLibs(要求 3.3 但我有 2.7.6)

python - "error: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.3 "but "10.6 "during configure"尝试 pip 安装不同的包时?

ruby - 如何修改 Homebrew 的 PATH?

java - 使用brew构建OpenCV时设置目标java版本

macos - GStreamer 非法硬件指令

macos - 安装mac osx后安装nginx模块

ruby - Homebrew 程序(Mac): cannot install libksba or dependency libgpg-error

python - 在 OS X 上使用 Python 安装 OpenCV 时出错

permissions - Homebrew 权限。/usr/local/sbin 不可写