Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer fails with kylekatarnls/update-helper on new homestead

I have installed a homestead on a new computer. I have pulled my code (which is working on my other computer as well as the server). My project is made in Laravel 5.7

When I do a composer require to get everything in place to, i get this error: Plugin kylekatarnls/update-helper could not be initialized, class not found

I have tried composer clear:cache, reinstalled the homestead-7 box. Non of it has worked. I still get the same error

But no matter what I get the same error

composer require
    1/5:    http://repo.packagist.org/p/provider-latest$a806a8d210ac003dea5f466b7eb4360aba21e7db378947d94fcc05f1c43d2921.json
    2/5:    http://repo.packagist.org/p/provider-2018-07$83d74e8f8f017f24768634de8431b0765d0193abe8fbae5dc508c608fa446a16.json
    3/5:    http://repo.packagist.org/p/provider-2019-01$39b4da101da77b6e7b2cf4b4b1d980900210eb4dc0455c762726efd19cd793cc.json
    4/5:    http://repo.packagist.org/p/provider-2018$326068043f2252c1742720ee06d5e82793507c5e5c4d0cb92b8984efba4c0a68.json
    5/5:    http://repo.packagist.org/p/provider-2019-04$5fd19400095ad7859026c523bd91494ff8aa62916e28c96588e6038b502f52cc.json
    Finished: success: 5, skipped: 0, failure: 0, total: 5
Search for a package: 
./composer.json has been updated
    1/5:    http://repo.packagist.org/p/provider-latest$3ce6543780da13f101ad846e0e24450290d158e25e24ffa46271e41ee96db5d3.json
    2/5:    http://repo.packagist.org/p/provider-2018-07$83d74e8f8f017f24768634de8431b0765d0193abe8fbae5dc508c608fa446a16.json
    3/5:    http://repo.packagist.org/p/provider-2018$326068043f2252c1742720ee06d5e82793507c5e5c4d0cb92b8984efba4c0a68.json
    4/5:    http://repo.packagist.org/p/provider-2019-01$39b4da101da77b6e7b2cf4b4b1d980900210eb4dc0455c762726efd19cd793cc.json
    5/5:    http://repo.packagist.org/p/provider-2019-04$5fd19400095ad7859026c523bd91494ff8aa62916e28c96588e6038b502f52cc.json
    Finished: success: 5, skipped: 0, failure: 0, total: 5
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 109 installs, 0 updates, 0 removals
  - Installing kylekatarnls/update-helper (1.1.1): Loading from cache
Plugin installation failed, rolling back
  - Removing kylekatarnls/update-helper (1.1.1)

Installation failed, reverting ./composer.json to its original content.


  [UnexpectedValueException]                                                   
  Plugin kylekatarnls/update-helper could not be initialized, class not found  
  : UpdateHelper\ComposerPlugin
like image 326
SorenPeter Avatar asked Jun 25 '19 15:06

SorenPeter


People also ask

What is difference between composer and composer update?

composer update is mostly used in the 'development' phase, to upgrade our project packages. composer install is primarily used in the 'deploying phase' to install our application on a production server or on a testing environment, using the same dependencies stored in the composer.

How do I update global composer?

For updating your Composer, you need to open the terminal (if you have a global installation) and run one of the following commands: Use composer self-update --preview to try the latest RC version (2. x). Use composer self-update --snapshot to try the latest dev build (2.


2 Answers

I tried

composer global require kylekatarnls/update-helper

then it worked

like image 54
Hazem Mohamed Avatar answered Sep 21 '22 07:09

Hazem Mohamed


Install without plugins if they're not necessary for you.

composer install --no-plugins

like image 27
Yue Wang Avatar answered Sep 22 '22 07:09

Yue Wang