siwapp-sf3 icon indicating copy to clipboard operation
siwapp-sf3 copied to clipboard

Unable to install: error occurred when executing the "'cache:clear --no-warmup'" command

Open wmzart opened this issue 3 years ago • 0 comments

On a fresh Debian 10 system with the following installed packages:

apt install git mariadb-server zip p7zip-full php-xml php-mbstring

and composer from following page:

https://getcomposer.org/download/

After issuing the composer create-project command, the ScriptHandler::clearCache throws an error:

$ composer create-project siwapp/siwapp-sf3 my_siwapp; cd my_siwapp
Creating a "siwapp/siwapp-sf3" project at "./my_siwapp"
Installing siwapp/siwapp-sf3 (1.0.3)
  - Installing siwapp/siwapp-sf3 (1.0.3): Extracting archive
Created project in /home/finc/my_siwapp
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 68 installs, 0 updates, 0 removals
  - Installing behat/transliterator (v1.1.0): Extracting archive
  - Installing doctrine/lexer (v1.0.1): Extracting archive
...
...
  - Installing twig/extensions (v1.4.1): Extracting archive
Generating autoload files
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Creating the "app/config/parameters.yml" file
Some parameters are missing. Please provide them.
database_host (127.0.0.1): 
database_port (null): 3306
database_name (symfony): 
database_user (root): 
database_password (null): 
mailer_transport (smtp): 
mailer_host (127.0.0.1): 
mailer_user (null): 
mailer_password (null): 
secret (ThisTokenIsNotSoSecretChangeIt): 
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

  [Symfony\Component\Debug\Exception\ContextErrorException]
  Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception

  [RuntimeException]
  An error occurred when executing the "'cache:clear --no-warmup'" command:

    [Symfony\Component\Debug\Exception\ContextErrorException]

    Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
  .



create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package>] [<directory>] [<version>]

Any idea how to solve this?

wmzart avatar Nov 19 '21 11:11 wmzart