Magento2: Copy Paste Error in Module name

December 19, 2015 ยท View on GitHub

$ bin/magento We're sorry, an error occurred. Try clearing the cache and code generation directories. By default, they are: var/cache, var/di, var/generation, and var/page_cache. [Zend\ServiceManager\Exception\ServiceNotCreatedException]
An abstract factory could not create an instance of magentosetupconsolecommandmoduleuninstallcommand(alias: Magento\Setup\Console\Command\ModuleUninstallC
ommand).

[Zend\ServiceManager\Exception\ServiceNotCreatedException]
An exception was raised while creating "Magento\Setup\Console\Command\ModuleUninstallCommand"; no instance returned

[Magento\Framework\Exception\FileSystemException]
The file "/composer.json" doesn't exist

===================================================

// Foo_Bar' Quote in module name was the cause ....