skip to Main Content

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:

0 [internal function]: MagentoInventoryComposerInstallerPlugin->initModuleDeployment(Object(ComposerScriptEvent))

1 phar:///home/jesperpu/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php(164): call_user_func(Array, Object(ComposerScriptEvent))

2 phar:///home/jesperpu/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php(96): ComposerEventDispatcherEventDispatcher->doDispatch(Object(ComposerScriptEvent))

3 phar:///home/jesperpu/composer.phar/src/Composer/Installer.php(208): ComposerEventDispatcherEventDispatcher->dispatchScript(‘pre-update-cmd’, true)

4 phar:///home/jesperpu/composer.phar/src/Composer/Command/UpdateCommand.php(163): ComposerInstaller->run()

5 phar:///home/jesperpu/composer in /home/jesperpu/public_html/vendor/magento/inventory-composer-installer/src/Plugin.php on line 69

2

Answers


  1. Chosen as BEST ANSWER

    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


  2. Try run those commands:

    rm -rf vendor
    composer clearcache
    composer update
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search