skip to Main Content

For two days I am trying to install magento version 2.2 on windows 10 operational system. I am cloning existing project from online repository. When everything is done and when I try to run application, magento commands in CLI are missing. I need to set mode to production but it is impossible as all deploy commands are missing. Below is example in CLI what happens:

$ bin/magento deploy:mode:show
[SymfonyComponentConsoleExceptionCommandNotFoundException] There
are no commands defined in the “deploy:mode” namespace.

This is happening for few more commands. And also in list of commands in CLI missing commands are not listed.

Tried to reinstall project, different version of project, reinstall composer.

2

Answers


  1. Chosen as BEST ANSWER

    Solution to my problem:

    setup:install command didn't completed untill the end, there is error in Installer.php file inside /setup/../Installer.php


  2. Looks like the generated dependency injection classes are not working correctly.
    Try removing the generated files

    del /S /F var/di
    rmdir var/di
    

    and regenerate classes:

    bin/magento setup:upgrade
    bin/magento setup:di:compile
    

    Afterwards you should be able to use the CLI Commands

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search