我正在尝试 Laravel Sail,因为我已经成功使用 Laradock 几年了,并希望简化我的开发环境设置。我使用的是 Windows 10 64,使用 WSL 2 安装的 Docker Desktop 3.0,我的 Laravel 应用程序运行的是 Laravel 8.20.1。
在我的 Laravel 项目中,我遵循了Laravel Sail 设置指南:我运行了composer require laravel/sail --dev和php artisan sail:install,并且docker-compose.yml在我的根目录中看到了。
但是当我运行时,./vendor/bin/sail up我收到此错误:
./vendor/bin/sail: line 1: XSym: command not found
./vendor/bin/sail: line 2: 0024: command not found
./vendor/bin/sail: line 3: a81960381c7144e16cd1e768af147de3: command not found
./vendor/bin/sail: line 4: ../laravel/sail/bin/sail: No such file or directory
Run Code Online (Sandbox Code Playgroud)
更新:我通过 Qumber 的帮助修复了上述问题:删除 /vendor/ 并重新安装。但现在我收到这个错误:
在 GitBash 中,我得到了这样的回应:
Unsupported …