laravel-8windows-subsystem-for-linuxlaravel-sail

Can't enter my password when trying to create a Laravel project with Sail on Windows


I want to create a new Laravel 8 project and I followed the documentation with docker and Sail on Windows: https://laravel.com/docs/8.x#getting-started-on-windows

After I installed everything, I tried executing the command to create the project:

curl -s https://laravel.build/example-app | bash

It asked me for my password. I entered it and pressed enter, but nothing happened. When I press CTRL+C, I can see that it tried to execute my password as a command.


Solution

  • First of all you should create a folder called projects inside your home directory, then, go into that folder and execute sudo curl -s https://laravel.build/example-app | bash

    You could also do sudo su and then curl -s https://laravel.build/example-app | bash