title: sh: symfony-cmd: command not found
body: <p>I have downgraded a Symfony 5.2 app template to use Symfony 4.4 in order to allow the use of some libraries that require an older version of Symfony. The problem is that when I do <code>composer install</code>, I get this error near the end of the installation:</p>
  <blockquote>
  <p>sh: symfony-cmd: command not found</p>
  </blockquote>
  <p>It seems that the installations are mostly successful, as my <code>vendor</code> folder is created and populated. But I'm worried about the error.</p>
  <p><strong>What does this error mean? How do I fix it?</strong></p>
  <p>====</p>
  <p>Edit: Here's my <code>composer.json</code> file:</p>
  <pre><code>{
      &quot;type&quot;: &quot;project&quot;,
      &quot;license&quot;: &quot;proprietary&quot;,
      &quot;minimum-stability&quot;: &quot;dev&quot;,
      &quot;prefer-stable&quot;: true,
      &quot;require&quot;: {
          &quot;php&quot;: &quot;&gt;=7.4.0&quot;,
          &quot;ext-ctype&quot;: &quot;*&quot;,
          &quot;ext-iconv&quot;: &quot;*&quot;,
          &quot;ext-json&quot;: &quot;*&quot;,
          &quot;composer/package-versions-deprecated&quot;: &quot;1.11.99.1&quot;,
          &quot;cweagans/composer-patches&quot;: &quot;^1.7&quot;,
          &quot;doctrine/doctrine-bundle&quot;: &quot;^2.4&quot;,
          &quot;doctrine/doctrine-migrations-bundle&quot;: &quot;^3.1&quot;,
          &quot;doctrine/orm&quot;: &quot;^2.9&quot;,
          &quot;phpdocumentor/reflection-docblock&quot;: &quot;*&quot;,
          &quot;sensio/framework-extra-bundle&quot;: &quot;*&quot;,
          &quot;symfony/framework-bundle&quot;: &quot;4.4.*&quot;,
          &quot;symfony/http-client&quot;: &quot;*&quot;,
          &quot;symfony/intl&quot;: &quot;*&quot;,
          &quot;symfony/mailer&quot;: &quot;*&quot;,
          &quot;symfony/mime&quot;: &quot;*&quot;,
          &quot;symfony/monolog-bundle&quot;: &quot;^3.1&quot;,
          &quot;symfony/notifier&quot;: &quot;*&quot;,
          &quot;symfony/process&quot;: &quot;*&quot;,
          &quot;symfony/property-access&quot;: &quot;*&quot;,
          &quot;symfony/property-info&quot;: &quot;*&quot;,
          &quot;symfony/proxy-manager-bridge&quot;: &quot;*&quot;,
          &quot;symfony/security-bundle&quot;: &quot;*&quot;,
          &quot;symfony/serializer&quot;: &quot;*&quot;,
          &quot;symfony/string&quot;: &quot;*&quot;,
          &quot;symfony/translation&quot;: &quot;*&quot;,
          &quot;symfony/twig-bundle&quot;: &quot;*&quot;,
          &quot;symfony/validator&quot;: &quot;*&quot;,
          &quot;symfony/web-link&quot;: &quot;*&quot;,
          &quot;symfony/yaml&quot;: &quot;*&quot;,
          &quot;twig/extra-bundle&quot;: &quot;*&quot;,
          &quot;twig/twig&quot;: &quot;*&quot;
      },
      &quot;require-dev&quot;: {
          &quot;doctrine/doctrine-fixtures-bundle&quot;: &quot;^3.4&quot;,
          &quot;roave/security-advisories&quot;: &quot;dev-master&quot;,
          &quot;symfony/browser-kit&quot;: &quot;*&quot;,
          &quot;symfony/css-selector&quot;: &quot;*&quot;,
          &quot;symfony/debug-bundle&quot;: &quot;*&quot;,
          &quot;symfony/maker-bundle&quot;: &quot;*&quot;,
          &quot;symfony/phpunit-bridge&quot;: &quot;*&quot;,
          &quot;symfony/stopwatch&quot;: &quot;*&quot;,
          &quot;symfony/var-dumper&quot;: &quot;*&quot;,
          &quot;symfony/web-profiler-bundle&quot;: &quot;*&quot;,
          &quot;vimeo/psalm&quot;: &quot;^4.9&quot;
      },
      &quot;config&quot;: {
          &quot;optimize-autoloader&quot;: true,
          &quot;preferred-install&quot;: {
              &quot;*&quot;: &quot;dist&quot;
          },
          &quot;sort-packages&quot;: true
      },
      &quot;autoload&quot;: {
          &quot;psr-4&quot;: {
              &quot;App\\&quot;: &quot;src/&quot;
          }
      },
      &quot;autoload-dev&quot;: {
          &quot;psr-4&quot;: {
              &quot;App\\Tests\\&quot;: &quot;tests/&quot;
          }
      },
      &quot;replace&quot;: {
          &quot;symfony/polyfill-ctype&quot;: &quot;*&quot;,
          &quot;symfony/polyfill-iconv&quot;: &quot;*&quot;,
          &quot;symfony/polyfill-php72&quot;: &quot;*&quot;
      },
      &quot;scripts&quot;: {
          &quot;auto-scripts&quot;: {
              &quot;cache:clear&quot;: &quot;symfony-cmd&quot;,
              &quot;assets:install %PUBLIC_DIR%&quot;: &quot;symfony-cmd&quot;
          },
          &quot;post-install-cmd&quot;: [
              &quot;@auto-scripts&quot;
          ],
          &quot;post-update-cmd&quot;: [
              &quot;@auto-scripts&quot;
          ]
      },
      &quot;conflict&quot;: {
          &quot;symfony/symfony&quot;: &quot;*&quot;
      },
      &quot;extra&quot;: {
          &quot;symfony&quot;: {
              &quot;allow-contrib&quot;: false,
              &quot;require&quot;: &quot;5.2.*&quot;
          },
          &quot;patches&quot;: {
              &quot;symfony/maker-bundle&quot;: {
                  &quot;Provide flag to force annotation in make entity command&quot;: &quot;https://raw.githubusercontent.com/vklux/maker-bundle-force-annotation/master/maker-force-annotation-flag.patch&quot;
              }
          }
      }
  }
  </code></pre>