Harsha
Harsha

Reputation: 5

I can't install spatie/laravel-sitemap on Laravel 5.6

I'm getting this error when installing:

Your requirements could not be resolved to an installable set of packages.

Problem 1 - spatie/laravel-sitemap[5.9.0, ..., 5.9.2] require illuminate/support ^8.0 -> found illuminate/support[v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require. - Root composer.json requires spatie/laravel-sitemap ^5.9 -> satisfiable by spatie/laravel-sitemap[5.9.0, 5.9.1, 5.9.2].

You can also try re-running composer require with an explicit version constraint, e.g. "composer require spatie/laravel-sitemap:*" to figure out if any version is installable, or "composer require spatie/laravel-sitemap:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Upvotes: 0

Views: 1113

Answers (1)

Noah.Schelling
Noah.Schelling

Reputation: 99

you can just

composer require spatie/laravel-sitemap:*
#                                       ^

Composer will figure out if any version (*) is installable (thanks to dependency resolution, compare Dependency Hell etc.).

You can also leave the star (*) out, as it poses some problems in the shell/command interpreter. Example:

composer require spatie/laravel-sitemap

See as well: How to install a specific version of package using Composer?

Upvotes: 1

Related Questions