The [InvalidArgumentException] There are no commands defined in the "deploy:mode" namespace.
when permissions are inadequate, see here https://db.tt/S4Y4yDyE
Seems a bit misleading.
This is related to a ticket we are already working on: MAGETWO-49955
@ajzele this has been fixed in the develop branch in scope of #2335. Please have a look and create a new ticket if issues arise.
For me I had to manaully rm -Rf var/di/*
sudo php bin/magento setup:upgrade
sudo php bin/magento setup:di:compile
now I dont get
[InvalidArgumentException]
There are no commands defined in the "deploy:mode" namespace.
I get this
sudo php bin/magento deploy:mode:set developer
Enabled developer mode.
:)
hope that helps...
Most helpful comment
For me I had to manaully rm -Rf var/di/*
sudo php bin/magento setup:upgrade
sudo php bin/magento setup:di:compile
now I dont get
[InvalidArgumentException]
There are no commands defined in the "deploy:mode" namespace.
I get this
sudo php bin/magento deploy:mode:set developer
Enabled developer mode.
:)
hope that helps...