You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I installed composer and when I run the command composer create-project --prefer-dist laravel/laravel projectTest to create a laravel project, the following error is returned:
PS C:\Users\Win11\Desktop\Projects> composer create-project --prefer-dist laravel/laravel projectTest
Creating a "laravel/laravel" project at "./projectTest"
Installing laravel/laravel (v9.3.7)
- Downloading laravel/laravel (v9.3.7)
- Installing laravel/laravel (v9.3.7): Extracting archive
Install of laravel/laravel failed
In FileDownloader.php line 370:
[TypeError]
Composer\Downloader\FileDownloader::removeCleanupPath(): Argument #2 ($path) must be of type string, bool given, called in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Downloader/ArchiveDownloader.php on line 98
Exception trace:
at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Downloader/FileDownloader.php:370
Composer\Downloader\FileDownloader->removeCleanupPath() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Downloader/ArchiveDownloader.php:98
Composer\Downloader\ArchiveDownloader->Composer\Downloader\{closure}() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Downloader/ArchiveDownloader.php:104
Composer\Downloader\ArchiveDownloader->install() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Downloader/DownloadManager.php:270
Composer\Downloader\DownloadManager->install() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer/ProjectInstaller.php:96
Composer\Installer\ProjectInstaller->install() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer/InstallationManager.php:464
Composer\Installer\InstallationManager->install() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer/InstallationManager.php:392
Composer\Installer\InstallationManager->Composer\Installer\{closure}() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/react/promise/src/FulfilledPromise.php:28
React\Promise\FulfilledPromise->then() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer/InstallationManager.php:393
Composer\Installer\InstallationManager->executeBatch() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer/InstallationManager.php:334
Composer\Installer\InstallationManager->downloadAndExecuteBatch() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer/InstallationManager.php:242
Composer\Installer\InstallationManager->execute() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Command/CreateProjectCommand.php:461
Composer\Command\CreateProjectCommand->installRootPackage() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Command/CreateProjectCommand.php:196
Composer\Command\CreateProjectCommand->installProject() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Command/CreateProjectCommand.php:171
Composer\Command\CreateProjectCommand->execute() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Command/Command.php:298
Symfony\Component\Console\Command\Command->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php:1024
Symfony\Component\Console\Application->doRunCommand() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php:299
Symfony\Component\Console\Application->doRun() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Console/Application.php:343
Composer\Console\Application->doRun() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php:171
Symfony\Component\Console\Application->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Console/Application.php:138
Composer\Console\Application->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/bin/composer:88
require() at C:\ProgramData\ComposerSetup\bin\composer.phar:29
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>]]]
PS C:\Users\Win11\Desktop\Projects>
Output of composer diagnose:
Checking platform settings: OK
Checking git settings: OK git version 2.36.1
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0 87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B 0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: You are not running the latest snapshot version, run `composer self-update` to update (2.4.1 => 9a69c12a0799d5a974f5ec5d2e78be3495b0b06c)
Composer version: 2.4.1
PHP version: 8.1.8
PHP binary path: C:\xampp\php\php.exe
OpenSSL version: OpenSSL 1.1.1p 21 Jun 2022
cURL version: 7.77.0 libz 1.2.12 ssl OpenSSL/1.1.1p
zip: extension present, unzip not available, 7-Zip not available
Composer version: 2.4.1
Can anyone help me to solve the problem?
The text was updated successfully, but these errors were encountered:
Vinicius-CS
changed the title
Error: Composer\Downloader\FileDownloader::removeCleanupPath(): Argument #2 ($path) must be of type string, bool given, called in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Downloader/ArchiveDownloader.php on line 98
Error running 'composer create-project --prefer-dist laravel/laravel projectTest'
Sep 11, 2022
Looks like the install failed for some reason and during cleanup it had an error here. I fixed the symptom so if you try again after a composer self-update --snapshot hopefully you'll see the underlying error.
Hello, I installed composer and when I run the command
composer create-project --prefer-dist laravel/laravel projectTest
to create a laravel project, the following error is returned:Output of
composer diagnose
:Composer version: 2.4.1
Can anyone help me to solve the problem?
The text was updated successfully, but these errors were encountered: