chris-ware / nova-breadcrumbs

Breadcrumbs for Laravel Nova
152 stars 44 forks source link

Can not install package with Laravel Nova 2.9.2 #72

Closed philipbaginski closed 4 years ago

philipbaginski commented 4 years ago

Hi!

I try to install package with Laravel Nova 2.9.2, but every time I'm getting error:

composer require chris-ware/nova-breadcrumbs Using version ^1.2 for chris-ware/nova-breadcrumbs ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

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

Any help?

chris-ware commented 4 years ago

How do you have Nova installed? Via the private packagist or via local install?

philipbaginski commented 4 years ago

Local install. I use this package with Nova 2.7, but on fresh install of Nova 2.9.2 I have got error as above.

chris-ware commented 4 years ago

Duplicate issue, see #68

philipbaginski commented 4 years ago

Okay. But why on the same local and with Nova 2.7 it works? What was different?

chris-ware commented 4 years ago

There is no difference. Local installs of Nova have never worked with this library since we've introduced version constraints as Composer is not able to detect the version difference. I'm assuming that with your local install, you probably installed breadcrumbs before the version constraints were in place and have been upgrading Nova locally ever since. This would have meant that, in essence, none of the Nova views with Breadcrumbs enabled were being updated. This is essentially one of the main reasons for the version constraints.

philipbaginski commented 4 years ago

Okay. I'm asking because I'm newbie with Laravel, Laravel Nova and php. Can you give me any advice how to install this package?

chris-ware commented 4 years ago

I'd suggest using the private satis repo: https://nova.laravel.com/docs/2.0/installation.html#installing-nova-via-composer

philipbaginski commented 4 years ago

But Nova is already installed. Should I override old files with new installation and I will be able to install package via composer? I istalled your package with Nova 2.7 maybe 2 weeks ago as a test. Few days ago I installed Nova 2.9.2 and package can not be installed.

chris-ware commented 4 years ago

I'm not suggesting re-installing, the installation guide gives you all the information required to install via composer via the private satis repo. It's a fairly straightforward switch. Once you've done that, composer will be aware of what version of Nova you have installed. I'm not sure how you managed to install the version for 2.7, as the only thing that has changed since then is an increase in the version constraints. The stricter version constraints were introduced with Nova 2.0, but even then, there have always been constraints on this package.

philipbaginski commented 4 years ago

That was my impresion. Nothing changed during two weeks in the code and installing failed. It is the only package not able to be installed by composer.