Can't install symfony/maker-bundle

前端 未结 1 509
梦毁少年i
梦毁少年i 2021-01-19 23:11

I am new to Symfony, I tried to install symfony/maker-bundle, but it gives me the following error:

Using version ^1.22 for symfony/maker-bundle
.         


        
相关标签:
1条回答
  • 2021-01-20 00:06

    Ocramius is well known for his harsh stance in maintaining backward compatibility.

    On this case, release 2.9.0 says:

    This release upgrades ocramius/proxy-manager to use composer-runtime-api:^2: this means that you will need composer:^2 to install this version of ProxyManager.

    In order to upgrade to composer v2, you can run composer self-update --2 on your development or CI/CD system.

    So your options are:

    • either upgrade composer to version 2 (composer self-update --2), which is really the recommended way to go unless you have some specific composer plugin that you really need and hasn't been updated to account for the new release.

    • Find which package you are installing is the one that requires the proxy-manager (composer why ocramius/proxy-manager), and see if you can adjust your version constraints on that package so that it depends on an older (< 2.9) version of ocramius/proxy-manager. (I mention this option only for completeness sake, but upgrading composer is really the way to go).

    0 讨论(0)
提交回复
热议问题