简体   繁体   中英

Laravel Sail on Windows Subsystem for Linux (wsl)

I was trying to create a new laravel app with laravel sail and I ran the following command on ubuntu 20.0.4:


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

But I got the following message:

docker: invalid reference format: repository name must be lowercase. See 'docker run --help'. bash: line 16: cd: example-app: No such file or directory

Get started with: cd example-app &&./vendor/bin/sail up


Here is a screen shot

(No folder is created)

You are using a directory with capitals and spaces, ie: Sennay Files . Use a different directory or rename it to: Sennay_Files .

You are working on the Windows file system from within WSL (ie /mnt/c). This will cause a significant performance hit, and issues like the one you are experiancing, consider using the WSL file system. You can change to the WSL file system by typing

cd ~

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM