【问题标题】:Problem installing git subrepo on MacOs bash 5在 MacOs bash 5 上安装 git subrepo 时出现问题
【发布时间】:2020-09-16 12:30:01
【问题描述】:

我试图在安装了 bash 5.0.18 的 MacO 上安装 git subrepo。当我获取 .bashrc 时,我收到错误消息:

git-subrepo 命令要求安装“Bash 4+”。它 不需要是你的 shell,但它必须在你的 PATH 中。你出现 在 macOS 上。尝试:'brew install bash'。这不会改变你的 用户外壳,它只是安装“Bash 5.x”。

git subrepo 是否与 bash 5 不兼容,或者有什么解决方案可以让它工作?

https://github.com/ingydotnet/git-subrepo

【问题讨论】:

    标签: bash git macos macos-high-sierra


    【解决方案1】:

    显然,我可以使用 brew 轻松安装它:

    brew install git-subrepo
    

    【讨论】:

      【解决方案2】:

      应该是PATH问题,如ingydotnet/git-subrepo issue 463所示

      我意识到我的路径的一部分未指定导致此问题。

      【讨论】:

        猜你喜欢
        • 2021-04-12
        • 2018-08-04
        • 1970-01-01
        • 2021-06-09
        • 2021-07-29
        • 2020-12-18
        • 1970-01-01
        • 2022-08-12
        • 2011-06-10
        相关资源
        最近更新 更多