Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Dirk313's avatar

Installing sail in new Project

Hi all, im trying to use docker in a project, when i run composer require laravel/sail --dev it installed correctly but when i run php artisan sail:install and select a package i get this "The system cannot find the path specified." but the package installed in my docker-compose.yml file, im using winows 10

and when I Run ./vendor/bin/sail up -d i get Unsupported operating system [MINGW64_NT-10.0-18363]. Laravel Sail supports macOS, Linux, and Windows (WSL2)

0 likes
7 replies
LaryAI's avatar
Level 58

This error message usually occurs when the Windows command prompt cannot find the path to the executable file. To fix this issue, try running the command prompt as an administrator and then run the php artisan sail:install command again.

If that doesn't work, try adding the path to the PHP executable to your system's environment variables. To do this, follow these steps:

  1. Open the Start menu and search for "Environment Variables".
  2. Click on "Edit the system environment variables".
  3. Click on the "Environment Variables" button.
  4. Under "System Variables", scroll down and find the "Path" variable.
  5. Click on "Edit" and then "New".
  6. Add the path to your PHP executable (e.g. C:\xampp\php) and click "OK".
  7. Restart your command prompt and try running the php artisan sail:install command again.

If you're still having issues, try using the vendor/bin/sail command instead of php artisan sail:install. Here's an example:

$ composer require laravel/sail --dev
$ php artisan vendor:publish --tag=sail-config
$ vendor/bin/sail up

This should start the Docker containers and you should be able to access your Laravel application at http://localhost.

frankielee's avatar

MINGW64

Probably you are using the wrong terminal.

bluesafety's avatar
Level 2

Are u running WSL2 ??

U have to run this commands inside your WSL2 Ubuntu Image.

Your Laravel-project need to be inside your WSL2 too.

check version wsl --status if it shows this

Default Distribution: Ubuntu Default Version: 2

start wsl2 C:\WINDOWS\system32\wsl.exe -d Ubuntu

now navigate to your Laravel-project and rerun commands.

here is a helpful link: stackoverflow-laravel-sail-unsupported

Tutorial for WSL install

Dirk313's avatar

@bluesafety O I see when i run wsl --status I get "Command 'wsl' not found, but can be installed with:" sudo apt install wsl

bluesafety's avatar

@Dirk313 now u have to install WSL otherwise it wouldn't work :)

but u are on wsl ... if u get somiething like this: sudo apt install wsl

uprade your wsl to wsl2 here link: WSL2

Dirk313's avatar

@bluesafety Your answer was spot on hehe thank you for the advise, if i run into n wall your post will bypass that hehehe thank you

1 like

Please or to participate in this conversation.