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

James_Moore's avatar

Windows Terminal Ubuntu: create new laravel project no output

Documentation Reference: https://laravel.com/docs/10.x#getting-started-on-windows

I've set up WSL2 on my windows machine and installed docker desktop. When I run the command curl -s https://laravel.build/example-app | bash in my windows terminal ubuntu session nothing happens, there is no output and no error message and no example app directory is created.

Has anyone ever ran into this issue and what did you do to resolve it, I'm trying to setup a windows wsl2 docker development environment using Laravel Sail. I'm able to use curl --help and get all the parameter options.

0 likes
3 replies
LaryAI's avatar
Level 58

There could be a few reasons why the command is not working. Here are some things to try:

  1. Make sure that you have curl installed in your Ubuntu session. You can check by running curl --version. If it's not installed, you can install it by running sudo apt-get install curl.

  2. Try running the command with the -v flag to see if there are any errors. For example: curl -s https://laravel.build/example-app | bash -v.

  3. Try running the command without the -s flag to see if there is any output. For example: curl https://laravel.build/example-app | bash.

  4. Try running the command in a different terminal, such as Git Bash or PowerShell.

  5. If none of the above solutions work, you can try manually creating a new Laravel project by following the steps in the Laravel documentation: https://laravel.com/docs/10.x/installation.

Here is an example of how to manually create a new Laravel project:

# Install PHP and other dependencies
sudo apt-get update
sudo apt-get install php php-cli php-mbstring php-xml php-zip unzip

# Install Composer
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer

# Create a new Laravel project
composer create-project --prefer-dist laravel/laravel example-app
cd example-app

# Start the development server
php artisan serve

Note: If you're using Laravel Sail, you can skip the above steps and follow the instructions in the Laravel documentation to install and use Sail: https://laravel.com/docs/8.x/sail.

1 like
frankm's avatar

I have the same problem on Windows 11 with WSL 2. When I add the -vvv to the curl -s https://laravel.build/example-app | bash command, it responds with:

  • Could not resolve host: laravel.build
  • Closing connection 0

This is on a fresh install of Windows 11 and Docker Desktop. I tried with Ubuntu 20.04 and 22.04 with no luck. When I try curl --version it shows Curl 7.58.0. When I run the curl command without the -s I get the same results showing all zeros and the Could not resolve host: laravel.build messge.

Please or to participate in this conversation.