Magento2 CLI – Fixing Command Errors and Long Error Messages

cacheclierrormagento2module

i have magento 2.2.3 . for deleting cache or enabling modules or any other usage of magento cli i take one error . it begins with this phrase

Unknown package has no name defined

and it is continuing with this long json terms error
enter image description here

and at the end it finished with this

enter image description here

i get these long senetces error for any cli magento command . one told me to install baintree but i check this module .it was installed before.
the instersting part is my project works in windows and it doesnt show me error on cli in windows os. but my server is linux and in docker container i run my same magento project and get error on CLI commands. how should i resolve that? my php version in both is same(linux and windows)

Best Answer

As you got the same PHP version and everything, i guess that you are just missing dependent vendor packages inside the linux docker container? Try composer install command in project root to fix it. Afterwards run the cli command again and it should work. Good luck

Related Topic