Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wmzart opened this issue Nov 19, 2021 · 0 comments

Comments

@wmzart
Copy link

wmzart commented Nov 19, 2021

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 wmzart mentioned this issue Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant