magento2: Can't install

I got following error when install beta1 from git

Fatal error: Class ‘Magento\Setup\Mvc\Bootstrap\InitParamListener’ not found in /Users/xxx/xxx/magento2/setup/config/application.config.php on line 24

Here is my steps:

  1. Clone repo
  2. Execute composer install
  3. Open browser and access http:😕/virtualhost.name/setup/

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 16 (5 by maintainers)

Commits related to this issue

Most upvoted comments

@IonutPerfectWeb Please add the following to your composer.json

"autoload": {
     "psr-4": {
     "Magento\\Framework\\": "htdocs/lib/internal/Magento/Framework/",
     "Magento\\Setup\\": "htdocs/setup/src/Magento/Setup/"
    }
},

Please replace htdocs with path to magento’s root directory, and then CLI should work fine without issues.