I get the error when run "composer update" in Magento ver. 2.3.3, PHP 7.3.15
Fatal error: Uncaught TypeError: Return value of MagentoInventoryComposerInstallerPlugin::initModuleDeployment() must be an instance of MagentoInventoryComposerInstallervoid, none returned in /home/jesperpu/public_html/vendor/magento/inventory-composer-installer/src/Plugin.php:69
Stack trace:
2
Answers
I use cmd composer update --no-plugins --no-dev phpoffice/phpspreadsheet
Problem 1 - Installation request for phpdocumentor/type-resolver (locked at 1.0.1) -> satisfiable by phpdocumentor/type-resolver[1.0.1]. - phpdocumentor/type-resolver 1.0.1 requires php ^7.1 -> your PHP version (7.0.33) does not satisfy that requirement.
then I check my PHP:
PHP -v
PHP 7.3.15 (cli) (built: Feb 21 2020 10:35:52) ( NTS )
fynaly I run whereis php
php: /usr/bin/php /usr/local/bin/php
/usr/local/bin/php /usr/local/bin/composer update --no-plugins --no-dev phpoffice/phpspreadsheet
ANd it's work
Try run those commands: