首页 > 解决方案 > Homestead.test 说“没有指定输入文件”,当我提供流浪汉时,我得到以下信息:

问题描述

感觉在过去的几天里我已经尝试了一切来让它发挥作用,而且我在这个星期一有一个关键的截止日期!

我已经尝试过 vagrant halt 然后再次启动。我已经尝试过 vagrant up --provision。我已经尝试过 vagrant destroy 然后向上。似乎没有任何效果。我的 homestead.yaml 文件看起来不错。映射是正确的。我的 homestead.test 一个多月前成功运行,现在我又回到了它,它不起作用......我遇到了同样的问题并修复了它,但不记得如何了!

    Bringing machine 'homestead' up with 'virtualbox' provider...
==> homestead: Checking if box 'laravel/homestead' version '9.7.2' is up to date...
==> homestead: Running provisioner: file...
    homestead: /Users/benpoarch/LaravelStuff/Homestead/aliases => /tmp/bash_aliases
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
    homestead: Unable to mount one of your folders. Please check your folders in Homestead.yaml
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
    homestead: Ignoring feature: mysql because it is set to false
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
    homestead: Ignoring feature: mariadb because it is set to false
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
    homestead: Ignoring feature: ohmyzsh because it is set to false
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
    homestead: Ignoring feature: webdriver because it is set to false
==> homestead: Running provisioner: shell...
    homestead: Running: /var/folders/xj/vfzltd1s4jbf1w8r7_8n6b_h0000gn/T/vagrant-shell20210102-10417-1qoqqjs.sh
==> homestead: Running provisioner: shell...
    homestead: Running: /var/folders/xj/vfzltd1s4jbf1w8r7_8n6b_h0000gn/T/vagrant-shell20210102-10417-1ykt8te.sh
==> homestead: Running provisioner: Creating Certificate: homestead.test (shell)...
    homestead: Running: script: Creating Certificate: homestead.test
==> homestead: Running provisioner: Creating Site: homestead.test (shell)...
    homestead: Running: script: Creating Site: homestead.test
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
==> homestead: Running provisioner: shell...
    homestead: Running: /var/folders/xj/vfzltd1s4jbf1w8r7_8n6b_h0000gn/T/vagrant-shell20210102-10417-dh5zkp.sh
==> homestead: Running provisioner: Checking for old Schedule (shell)...
    homestead: Running: script: Checking for old Schedule
==> homestead: Running provisioner: Creating Certificate: homestead2.test (shell)...
    homestead: Running: script: Creating Certificate: homestead2.test
==> homestead: Running provisioner: Creating Site: homestead2.test (shell)...
    homestead: Running: script: Creating Site: homestead2.test
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
==> homestead: Running provisioner: shell...
    homestead: Running: /var/folders/xj/vfzltd1s4jbf1w8r7_8n6b_h0000gn/T/vagrant-shell20210102-10417-725eap.sh
==> homestead: Running provisioner: Checking for old Schedule (shell)...
    homestead: Running: script: Checking for old Schedule
==> homestead: Running provisioner: Clear Variables (shell)...
    homestead: Running: script: Clear Variables
==> homestead: Running provisioner: Restarting Cron (shell)...
    homestead: Running: script: Restarting Cron
==> homestead: Running provisioner: Restart Webserver (shell)...
    homestead: Running: script: Restart Webserver
==> homestead: Running provisioner: Update Composer (shell)...
    homestead: Running: script: Update Composer
    homestead: You are already using composer version 2.0.8 (stable channel).
    homestead: chown: cannot access '/home/vagrant/.composer/': No such file or directory
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

标签: phplaravelwebhomestead

解决方案


我刚刚通过执行以下操作解决了这个问题:

vagrant ssh

cd vagrant

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"

php composer-setup.php

php -r "unlink('composer-setup.php');"

exit

vagrant reload

你应该很高兴。


推荐阅读