Failed to create composer project while installing symfony/framework-standard-edition
Answered
When I use composer in my windows Command Prompt to install symfony/framework-standard-edition it works fine but when I try to do it through creating a new composer project in Phpstorm it failes to create the project and stops cloning from git which leaves the framework incomplete. Error message:
[RuntimeException]
Failed to clone https://github.com/symfony/symfony.git via https, ssh proto
cols, aborting.
- https://github.com/symfony/symfony.git
fatal: destination path 'D:\Allon\Documenten\Programming of webdesign\Php
stormProjects\todolist\composer\vendor\symfony\symfony' already exists and
is not an empty directory.
- git@github.com:symfony/symfony.git
fatal: destination path 'D:\Allon\Documenten\Programming of webdesign\Php
stormProjects\todolist\composer\vendor\symfony\symfony' already exists and
is not an empty directory.
Anybody have a solution?
This is the whole progress:
D:\Programma's\wamp64\bin\php\php5.6.25\php.exe D:\Programma's\composer\composer.phar create-project symfony/framework-standard-edition "D:\Allon\Documenten\Programming of webdesign\PhpstormProjects\todolist\composer" v3.3.0
Installing symfony/framework-standard-edition (v3.3.0)
- Installing symfony/framework-standard-edition (v3.3.0): Downloading (connecting...)
Downloading (15%)
Downloading (45%)
Downloading (50%)
Downloading (65%)
Downloading (95%)
Downloading (100%)
Created project in D:\Allon\Documenten\Programming of webdesign\PhpstormProjects\todolist\composer
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 38 installs, 0 updates, 0 removals
- Installing doctrine/lexer (v1.0.1): Downloading (connecting...)
Downloading (0%)
Downloading (100%)
- Installing doctrine/annotations (v1.2.7): Downloading (connecting...)
Downloading (0%)
Downloading (10%)
Downloading (20%)
Downloading (30%)
Downloading (40%)
Downloading (100%)
- Installing twig/twig (v1.33.2): Downloading (connecting...)
Downloading (0%)
Downloading (5%)
Downloading (10%)
Downloading (15%)
Downloading (20%)
Downloading (25%)
Downloading (30%)
Downloading (35%)
Downloading (40%)
Downloading (45%)
Downloading (50%)
Downloading (55%)
Downloading (60%)
Downloading (65%)
Downloading (70%)
Downloading (75%)
Downloading (80%)
Downloading (85%)
Downloading (90%)
Downloading (95%)
Downloading (100%)
- Installing symfony/polyfill-util (v1.3.0): Downloading (connecting...)
Downloading (25%)
Downloading (100%)
- Installing paragonie/random_compat (v2.0.10): Downloading (connecting...)
Downloading (35%)
Downloading (90%)
Downloading (100%)
- Installing symfony/polyfill-php70 (v1.3.0): Downloading (connecting...)
Downloading (100%)
- Installing symfony/polyfill-php56 (v1.3.0): Downloading (connecting...)
Downloading (100%)
- Installing symfony/polyfill-mbstring (v1.3.0): Downloading (connecting...)
Downloading (35%)
Downloading (70%)
Downloading (100%)
- Installing symfony/symfony (v3.3.0): Downloading (connecting...)
Downloading (0%)
Downloading (5%)
Downloading (10%)
Downloading (15%)
Downloading (20%)
Downloading (25%)
Downloading (30%)
Downloading (35%)
Downloading (40%)
Downloading (45%)
Downloading (50%)
Downloading (55%)
Downloading (60%)
Downloading (65%)
Downloading (70%)
Downloading (75%)
Downloading (80%)
Downloading (85%)
Downloading (90%)
Downloading (95%)
Downloading (100%)
Failed to download symfony/symfony from dist: The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems): ZipArchive::extractTo(): No such file or directory
Now trying to download from source
- Installing symfony/symfony (v3.3.0): Cloning 5a7e31c48e from cache
[RuntimeException]
Failed to clone https://github.com/symfony/symfony.git via https, ssh proto
cols, aborting.
- https://github.com/symfony/symfony.git
fatal: destination path 'D:\Allon\Documenten\Programming of webdesign\Php
stormProjects\todolist\composer\vendor\symfony\symfony' already exists and
is not an empty directory.
- git@github.com:symfony/symfony.git
fatal: destination path 'D:\Allon\Documenten\Programming of webdesign\Php
stormProjects\todolist\composer\vendor\symfony\symfony' already exists and
is not an empty directory.
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]
Please sign in to leave a comment.
Hello,
What PhpStorm and Composer versions do you use?
PhpStorm version 2017.1.4.
Composer version 1.4.2 is installed on my pc.
From https://stackoverflow.com/questions/9864728/how-to-get-git-to-clone-into-current-directory - did you test that you're able to install the framework into a non-empty directory using windows command prompt?
It would be great if you could try that and attach the CMD output generated.
I tried to install the framework with Composer through the Windows CMD in a directory that had already a .text file inside. I got this:
To be honest, not a single idea. The same actions on my Windows machine successfully create the project.
Could you please try to use a completely different folder for installation, and also download the composer.phar anew not using the existing one.
Does it behave the same?
It worked! Maybe it has something to do with my naming conventions. I'll change the name of the install directory to make it work when I install on the default folder. Thanks!