0

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?

asked Feb 21, 2021 at 6:05

2 Answers 2

0

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

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

answered Feb 21, 2021 at 15:18
2
  • I already tried the command "composer: composer clear-cache", and it didn't work) :. Where can I find composer.lock and composer.json? 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
0

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

answered Feb 22, 2021 at 5:16

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.