How do I fix the Laravel error Errno::DIR?

  laravel, php, ruby-on-rails, vagrant

I’m new to Laravel. At first the path to homestead.rb in the VagrantFile was incorrect and someone kindly helped me with that, but now I’m receiving the following error:

Traceback (most recent call last):
        18: from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/bin/vagrant:168:in `<main>'
        17: from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/bin/vagrant:168:in `new'
        16: from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/environment.rb:178:in `initialize'
        15: from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/environment.rb:973:in `process_configured_plugins'
        14: from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/environment.rb:792:in `vagrantfile'
        13: from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/environment.rb:792:in `new'
        12: from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/vagrantfile.rb:29:in `initialize'
        11: from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/config/loader.rb:116:in `load'
        10: from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/config/loader.rb:116:in `each'
         9: from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/config/loader.rb:119:in `block in load'
         8: from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/config/loader.rb:119:in `each'
         7: from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/config/loader.rb:126:in `block (2 levels) in load'
         6: from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/lib/vagrant/config/v2/loader.rb:37:in `load'
         5: from C:/xampp/htdocs/web-projects/project1/vendor/bin/Vagrantfile:36:in `block in <top (required)>'
         4: from C:/xampp/htdocs/web-projects/project1/vendor/laravel/homestead/scripts/homestead.rb:142:in `configure'
         3: from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/plugins/kernel_v2/config/vm.rb:420:in `provision'
         2: from C:/HashiCorp/Vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/plugins/kernel_v2/config/vm_provisioner.rb:107:in `add_config'
         1: from C:/xampp/htdocs/web-projects/project1/vendor/laravel/homestead/scripts/homestead.rb:144:in `block in configure'
C:/xampp/htdocs/web-projects/project1/vendor/laravel/homestead/scripts/homestead.rb:144:in `read': Is a directory @ rb_sysopen - C:/xampp/htdocs/web-projects/project1 (Errno::EISDIR)

Source: Laravel

Leave a Reply