I am running into the following error when creating a new symfony project using the symfony/symfony package on composer:
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
In PathRepository.php line 163:
The 'url' supplied for the path (src/Symfony/Contracts) repository does not exist
I cannot appreciate the error message nor fix it. I have no clue where PathRepository.php
is and changing versions of Contracts
in composer.json
is not helpful. Any ideas while this is failing out of the box? Without suggesting a different package or installer (like symfony-cli).
I ran composer create-project symfony.symfony starter-app-symfony
and expected:
Loading composer repositories with package information
Updating dependencies
Installing dependencies from lock file (including require-dev)
Package operations: xx installs, xx updates, xx removals
xx package suggestions were added by new dependencies, use 'composer suggest' to see details.
Generating optimized autoload files
xx packages you are using are looking for funding.
Use the 'composer fund' command to find out more!
No security vulnerability advisories found