'Laravel error: Laravel Sail no such File or directory found

I am following this tutorial,

I installed Docker and WSL2(Ubuntu 20.04.4 LTS) on my windows system, as shown in image below, enter image description here

When i am trying to run Laravel project using command,

./vendor/bin/sail up

Why i am getting error no such file or directory found?



Solution 1:[1]

Instead of:

./vendor/bin/sail up ?

Use this:

bash ./vendor/laravel/sail/bin/sail up ?

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 steven7mwesigwa