After flashing cache Static files under admin -> cache management in magento 2 showing 500 Error and vendor folder got automatically deleted during this process. I don't know why it happend.

They shown me following error.

Vendor autoload is not found. Please run 'composer install' under application root directory.

Kindly suggest any solution.


Change https://packages.magento.com/ to https://repo.magento.com/ ?

in composer.json

The first one was the old URL. You should remove that from your composer.json (Magento Root) and add second one.

  • Its already showing in file. "type": "composer","url": "repo.magento.com". i dont know why after click on flash static file page goes blank and it display above error. also my vendor folder got deleted. – Swapnil0226 Feb 2 '18 at 7:41
  • Magento 2 version? – Saphal Jha Feb 2 '18 at 8:20
  • css and js is not loading after above problem solved.kindly help me – Swapnil0226 Feb 2 '18 at 10:56
  • Could you please let me know the URL that you are getting in console? for css and js (404) – Saphal Jha Feb 2 '18 at 12:05

Your Answer

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.