Sail Version: 1.8.1 (I think. Is there a version command for sail? How do you find this?)
Laravel Version: 8.47.0
PHP Version: 8.0.7
OS: Windows 10 WSL2 running Ubuntu 20.04.2 LTS
Description:
I'm following the Laravel installation for Windows. Everything works up until this point. I open Windows Console, then open a Ubuntu tab, run the command below, and the installation fails.
username@Username:/mnt/c/Users/Username/Laravel/example-app$ sudo ./vendor/bin/sail composer require laravel/jetstream
Using version ^2.3 for laravel/jetstream
./composer.json has been updated
Running composer update laravel/jetstream
Loading composer repositories with package information
Updating dependencies
Lock file operations: 9 installs, 0 updates, 0 removals
- Locking bacon/bacon-qr-code (2.0.3)
- Locking dasprid/enum (1.0.3)
- Locking jaybizzle/crawler-detect (v1.2.106)
- Locking jenssegers/agent (v2.6.4)
- Locking laravel/fortify (v1.7.13)
- Locking laravel/jetstream (v2.3.9)
- Locking mobiledetect/mobiledetectlib (2.8.37)
- Locking paragonie/constant_time_encoding (v2.4.0)
- Locking pragmarx/google2fa (8.0.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 9 installs, 0 updates, 0 removals
- Downloading dasprid/enum (1.0.3)
- Downloading bacon/bacon-qr-code (2.0.3)
- Downloading jaybizzle/crawler-detect (v1.2.106)
- Downloading paragonie/constant_time_encoding (v2.4.0)
- Downloading pragmarx/google2fa (8.0.0)
- Downloading laravel/fortify (v1.7.13)
- Downloading mobiledetect/mobiledetectlib (2.8.37)
- Downloading jenssegers/agent (v2.6.4)
- Downloading laravel/jetstream (v2.3.9)
- Installing dasprid/enum (1.0.3): Extracting archive
- Installing bacon/bacon-qr-code (2.0.3): Extracting archive
- Installing jaybizzle/crawler-detect (v1.2.106): Extracting archive
- Installing paragonie/constant_time_encoding (v2.4.0): Extracting archive
- Installing pragmarx/google2fa (8.0.0): Extracting archive
- Installing laravel/fortify (v1.7.13): Extracting archive
- Installing mobiledetect/mobiledetectlib (2.8.37): Extracting archive
- Installing jenssegers/agent (v2.6.4): Extracting archive
- Installing laravel/jetstream (v2.3.9): Extracting archive
0/9 [>---------------------------] 0% Failed to extract jenssegers/agent: (1) '/usr/bin/unzip' -qq '/var/www/html/vendor/composer/tmp-79b8f7ce711bd5cc99a75e296a3f6850' -d '/var/www/html/vendor/composer/abc1eced'
chmod (directory attributes) error: Operation not permitted
fchmod (file attributes) error: Operation not permitted
warning: cannot set modif./access times for /var/www/html/vendor/composer/abc1eced/jenssegers-agent-daa11c4/LICENSE.md
Operation not permitted
fchmod (file attributes) error: Operation not permitted
warning: cannot set modif./access times for /var/www/html/vendor/composer/abc1eced/jenssegers-agent-daa11c4/README.md
Operation not permitted
fchmod (file attributes) error: Operation not permitted
warning: cannot set modif./access times for /var/www/html/vendor/composer/abc1eced/jenssegers-agent-daa11c4/composer.json
Operation not permitted
Similar error messages, then:
The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class
Install of laravel/jetstream failed
9/9 [============================] 100%
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
[RuntimeException]
The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems): ZipArchive::extractTo(/var/www/html/vendor/compo
ser/abc1eced/jenssegers-agent-daa11c4/LICENSE.md): Operation failed: Operation not permitted
[ErrorException]
ZipArchive::extractTo(/var/www/html/vendor/composer/abc1eced/jenssegers-agent-daa11c4/LICENSE.md): Operation failed: Operation not permitted
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-scripts] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>]...
Description:
I'm following the Laravel installation for Windows. Everything works up until this point. I open Windows Console, then open a Ubuntu tab, run the command below, and the installation fails.
Steps To Reproduce:
sudo ./vendor/bin/sail composer require laravel/jetstream