guys I installed magento 2 on the server, and after that I removed it because it was in a different version than the one I should install. And I removed it using the command rm -rf 'project'. However when I went to install again using the command:

"composer create-project --repository = https: //repo.magento.com/ magento / project-community-edition = 2.3.5-p2".

He returned an error called "killed"

Updating dependencies (including require-dev) Killed

What can I do to fix it?

2 Answers 2


Try tto clear composer cache : composer clear-cache then run your command.

If you have composer.json or composer.lock files remove them.

  • I already tried the command "composer: composer clear-cache", and it didn't work) :. Where can I find composer.lock and composer.json?
    – lucas
    Commented Feb 21, 2021 at 16:16
  • Which files do you have on your project folder ? If you believe your project folder is empty then could you try run your command in another blank folder ? Commented Feb 21, 2021 at 16:18

Delete your previous Directory and run the command again

composer create-project --repository = https: //repo.magento.com/ magento / project-community-edition = 2.3.5-p2 here_write_directory_name

This will install your magento perfectly

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.