Magento – Magento 2 Composer Error

composermagento2

trying to have a go at magento 2, I have the latest PHP.

Error message:

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

Where do you install composer, on the root of your server/in root magento directory or in the magento setup directory?

Best Answer

You could actually put it anywhere, what really matters is where you run it from. If you download composer and put it somewhere in your cli PATH then all you need to do is cd to your magento directory and then run "composer update", however you could also put it in the magento directory and run it from there.

You may already know but just to be clear. The CLI tool doesn't actually have anything to do with running the Magento application. The main thing Composer takes care of is downloading and installing the dependencies of the project, it will also create an autoload file so that those dependencies can easily be loaded from the application.