Closed lukeagsmith closed 3 years ago
What version is it trying to install? The current version doesn't have that method at all?
Version 2.0.4
composer require silentz/mailchimp
Using version ^2.0 for silentz/mailchimp
./composer.json has been updated
Running composer update silentz/mailchimp
Loading composer repositories with package information
Updating dependencies
Lock file operations: 3 installs, 0 updates, 0 removals
- Locking drewm/mailchimp-api (v2.5.4)
- Locking silentz/mailchimp (2.0.4)
- Locking spatie/laravel-newsletter (4.8.2)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
- Downloading drewm/mailchimp-api (v2.5.4)
- Downloading spatie/laravel-newsletter (4.8.2)
- Downloading silentz/mailchimp (2.0.4)
- Installing drewm/mailchimp-api (v2.5.4): Extracting archive
- Installing spatie/laravel-newsletter (4.8.2): Extracting archive
- Installing silentz/mailchimp (2.0.4): Extracting archive
Huh, interesting. My guess is that you are not on PHP7.4 as 2.0.5 was the first version to require that.
Can you do it manually to confirm? Set the constraint to "silentz/mailchimp": "^2.2"
in your composer.json
then run composer update
?
Yes I think you are right:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- silentz/mailchimp[v2.2, ..., v2.2.4] require php ^7.4 -> your php version (7.3.10) does not satisfy that requirement.
- Root composer.json requires silentz/mailchimp ^2.2 -> satisfiable by silentz/mailchimp[v2.2, ..., v2.2.4].
Upgrade to php 7.4 and you should be good to go!
running
composer require silentz/mailchimp
gives the error:This error still happens after running: