Magento2: The bin/magento console tool shows misleading message

Created on 20 Jan 2016  路  4Comments  路  Source: magento/magento2

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.

Ready for Work bug report

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...

All 4 comments

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...

Was this page helpful?
0 / 5 - 0 ratings