我正试图建立一个作为一个发展环境的家园,没有多少运气。我按照指示在https://laravel.com/docs/5.8/homestead#installation-and-setup上安装和运行Homestead。盒子开得很好,我可以用流浪汉装进去。在正确映射到我的Windows机器上的一个目录的代码目录中,我使用laravel new example创建了一个新的laravel项目,并得到以下错误
[RuntimeException]
Could not scan for classes inside "/home/vagrant/code/example/vendor/phpunit/php-code-coverage/src/" which does not appear to be a file nor a folder我已经尝试过composer update rm -rf vendor && composer install并得到了同样的错误。当我使用composer install --prefer-source时,我没有安装错误,但是
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1和
In LoadConfiguration.php line 68: Unable to load the "app" configuration file.
我检查了我是否有一个.env文件,并检查了应用程序文件名和路径是否是小写的。
欢迎提出任何建议。
发布于 2019-07-08 09:32:59
将VirtualBox更新为v6。
请参阅GitHub:https://github.com/laravel/homestead/issues/1219上的这个问题
https://stackoverflow.com/questions/56903011
复制相似问题