"Box: laravel/homestead-7" producing "sh.exe":box:: command not found"

- 1 answer

Ad

Goal: install homestead so that I can install laravel

I am following the official instructions trying to install homestead.

I have so far on the Git Bash terminal:

  1. Installed the vagrant box and Virtual box which works fine. Also added the laravel/homestead box to the vagrant installation
  2. Cloned the Homestead Repo
  3. Cloned the php7 brand of the Homestead Repo
  4. Successfully ran 'bash init.sh'
  5. Initialized Homestead by running "git clone -b php-7 https://github.com/laravel/homestead.git Homestead7

Now when I am trying to run:

box: laravel/homestead-7

The terminal gives me:

sh.exe": box:: command not found

Currently, the Homestead folder is sitting on the following path:

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

Does anyone know why this is happening and the solution?

What I have researched so far on Google but does not seem to address my particular problem:

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

Ad

Answer

Ad

You need to read more carefully:

Next, add then the box directive to the top of your ~/.homestead/Homestead.yaml file (on a new line after --- mark):

...

This means that you need to open the file named in a text editor and modify it.

Ad
source: stackoverflow.com
Ad