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?

New contributor
lucas is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

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 Feb 21 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 ? – Mehmet Uygur Feb 21 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

lucas is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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