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
Solution to my problem:
setup:install command didn't completed untill the end, there is error in Installer.php file inside /setup/../Installer.php
Looks like the generated dependency injection classes are not working correctly.
Try removing the generated files
and regenerate classes:
Afterwards you should be able to use the CLI Commands