【问题标题】:Errno 13 Permission denied when installing gcloud in macOS Mojave 10.14.2在 macOS Mojave 10.14.2 中安装 gcloud 时 Errno 13 Permission denied
【发布时间】:2019-02-07 01:32:58
【问题描述】:

尝试安装 gcloud 时出现以下错误 [Errno 13] Permission denied。

我尝试使用 sudo 运行安装,运行手动安装,但什么也没有。

运行时产生以下错误:

sudo curl https://sdk.cloud.google.com | bash

【问题讨论】:

    标签: macos gcloud macos-mojave


    【解决方案1】:

    sudo curl "$url" | bash 将使用sudo 调用curl,但在另一个子shell 中的bash 不受先前sudo 的影响。

    可能没有必要使用 root 调用 curl,但 bash 似乎需要 root。所以只需将sudo 移动到需要的位置,例如curl "$url" | sudo bash

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-07-21
      • 2020-12-07
      • 2017-02-12
      • 2020-12-12
      • 1970-01-01
      • 1970-01-01
      • 2019-07-31
      相关资源
      最近更新 更多