1

I am new to Symfony and tried to follow the installation guide (https://symfony.com/doc/current/setup.html) in the docs. However, I always get this error after running "composer install"

Commands I used:

composer create-project symfony/skeleton:"6.2.*" basic

cd basic

composer install

In CurlDownloader.php line 623:

  The "https://raw.githubusercontent.com/symfony/recipes/flex/main/index.json" file could not be downloaded (HTTP/2 404 )

Anyone also faced this problem?

Tried to change symfony/flex version to ^1.0 in composer.json

13
  • Which guide are you trying to follow? raw.githubusercontent.com/symfony/recipes/flex/main/index.json loads fine for me, shouldn't be a 404 Commented Dec 10, 2022 at 17:04
  • @mpen symfony.com/doc/current/setup.html Commented Dec 10, 2022 at 17:07
  • There are various ways described in that doc, so just pointing to it is not enough description of what you did before getting a problem Commented Dec 10, 2022 at 17:10
  • @RiggsFolly I have just updated my question Commented Dec 10, 2022 at 17:14
  • Cannot reproduce this! Just ran it fine, including the unnecessary composer install The composer install is not required. That is what you do when you download a written project from git and want to make sure the composer provisioned code is all downloaded (the stuff thats managed by composer and not GIT) Commented Dec 10, 2022 at 17:31

1 Answer 1

3

After running "composer dignose" I found a misconfiguration in github token. Then I ran "composer config --global --unset github-oauth.github.com" and the problem was solved

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.