Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

There are no commands defined in the "setup" namespace : Magento 2

I have installed latest version of Megento 2, everything is working fine frontend, backend and functionality.

I have one issue with bin/magento setup:upgrade command, when I run this command in terminal I get below exception .

[InvalidArgumentException]
There are no commands defined in the "setup" namespace.

Screenshot :

enter image description here

Is there any thing I missed during installation or I need to install some package to let it working?

like image 202
Deepak Mankotia Avatar asked Nov 26 '15 10:11

Deepak Mankotia


1 Answers

Giving full control (read/write/execute) to var and pub directory should solve this issue.

sudo chmod -R 777 var pub

You may also try running the command using sudo.

sudo php bin/magento setup:upgrade
like image 53
Mukesh Chapagain Avatar answered Oct 01 '22 18:10

Mukesh Chapagain