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

awaisjavaid's avatar

Laravel WSL Issue on Window

Hi . curl -s "https://laravel.build/example-app" | bash by using this command but on WSL i am trying to installing laravel project. docker and WSL is working fine. but when i put this command on wsl after speattie package.

 - Installing spatie/backtrace (1.4.0): Extracting archive
  - Installing spatie/flare-client-php (1.3.5): Extracting archive
  - Installing spatie/ignition (1.4.5): Extracting archive
  - Installing spatie/laravel-ignition (2.0.0): Extracting archive
    Install of fakerphp/faker failed
    Install of nesbot/carbon failed
    Install of monolog/monolog failed
    Install of league/commonmark failed
    Install of laravel/framework failed
    Install of laravel/sail failed
    Install of nikic/php-parser failed
    Install of psy/psysh failed
    Install of hamcrest/hamcrest-php failed

In Filesystem.php line 314:

Could not delete /opt/nafees/vendor/composer/aa812320/briannesbitt-Carbon-4 967128/src/Carbon/Lang:

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package> [<directory> [<version>]]]

bash: line 19: ./vendor/bin/sail: No such file or directory bash: line 20: ./vendor/bin/sail: No such file or directory

Please provide your password so we can make some final adjustments to your application's permissions.

[sudo] password for awais-pc:

Thank you! We hope you build something incredible. Dive in with: cd nafees && ./vendor/bin/sail up awais-pc@Awais-PC:/mnt/d/projects$ cd nafees/ awais-pc@Awais-PC:/mnt/d/projects/nafees$ composer clear-cache /mnt/d/composer/composer: 14: php: Permission denied awais-pc@Awais-PC:/mnt/d/projects/nafees$ ^C awais-pc@Awais-PC:/mnt/d/projects/nafees$ ^C

this issue is facing. i found a solution composer cache clear but when i try to clear the cache composer permission arise on wsl and when i put window terminal PHP version issue arise i am stuck from many day and did not find any solution.

i am using window

0 likes
0 replies

Please or to participate in this conversation.