Homestead 9 fresh box creating a new Laravel project composer 无法在 /vendor/phpunit/php-code-coverage/src/ 中扫描 类
Homestead 9 fresh box creating a new Laravel project composer Could not scan for classes inside /vendor/phpunit/php-code-coverage/src/
我正在尝试将 Homestead 设置为开发环境,但运气不佳。我按照说明启动 Homestead 并在 https://laravel.com/docs/5.8/homestead#installation-and-setup 上 运行。这个盒子很好,我可以 shell 使用 vagrant ssh。在正确映射到我的 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 文件,我检查过应用程序文件名和路径是小写的。
欢迎提出任何建议。
将 VirtualBox 更新到 v6。
在 GitHub 上查看此问题:https://github.com/laravel/homestead/issues/1219
我正在尝试将 Homestead 设置为开发环境,但运气不佳。我按照说明启动 Homestead 并在 https://laravel.com/docs/5.8/homestead#installation-and-setup 上 运行。这个盒子很好,我可以 shell 使用 vagrant ssh。在正确映射到我的 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 文件,我检查过应用程序文件名和路径是小写的。
欢迎提出任何建议。
将 VirtualBox 更新到 v6。
在 GitHub 上查看此问题:https://github.com/laravel/homestead/issues/1219