【问题标题】:"Box: laravel/homestead-7" producing "sh.exe":box:: command not found"“盒子:laravel/homestead-7”产生“sh.exe”:box :: command not found”
【发布时间】:2016-03-30 21:21:27
【问题描述】:

目标:安装宅基地,以便我可以安装 laravel

我正在关注official instructions 尝试安装宅基地。

到目前为止,我在 Git Bash 终端上:

  1. 安装了工作正常的流浪盒和虚拟盒。还将 laravel/homestead 框添加到 vagrant 安装中
  2. 克隆了 Homestead 存储库
  3. 克隆了 Homestead Repo 的 php7 品牌
  4. 成功运行 'bash init.sh'
  5. 通过运行“git clone -b php-7 https://github.com/laravel/homestead.git Homestead7”初始化 Homestead

现在当我尝试运行时:

box: laravel/homestead-7

终端给我:

sh.exe": box:: command not found

目前,Homestead 文件夹位于以下路径:

C:\Users\Gil.vagrant.d\boxes\homestead\Homestead

有谁知道为什么会这样以及解决方法吗?

到目前为止,我在 Google 上进行了研究,但似乎并没有解决我的特定问题:

cant-add-laravel-homestead-box-ssl-certificate-prob-windows

cant-install-vagrant-box-laravel-homestead

cant-add-laravel-homestead-box-ssl-certificate-prob-windows

the-box-laravel-homestead-could-not-be-found

【问题讨论】:

    标签: php laravel git-bash


    【解决方案1】:

    你需要仔细阅读:

    接下来,将 box 指令添加到 ~/.homestead/Homestead.yaml 文件的顶部(在 --- 标记后的新行上):

    ...

    这意味着您需要在文本编辑器中打开命名的文件并对其进行修改。

    【讨论】:

    • 感谢@Ignacio 我不确定那是什么意思。什么是盒子指令?我试着猜测它可能是盒子目录,所以我在 yaml 文件上的 --- 标记之后添加了对盒子目录的绝对引用,但仍然不起作用。
    • 只需...将该文本按原样放入文件中。
    • 啊,我认为我需要在终端上运行该行而不是实际添加它。谢谢
    猜你喜欢
    • 2015-02-12
    • 1970-01-01
    • 2019-07-07
    • 2020-09-26
    • 2014-04-17
    • 1970-01-01
    • 2016-02-24
    • 1970-01-01
    • 2020-06-14
    相关资源
    最近更新 更多