Why I van not install u12206050/nova-treeview package ?
On laravel 11 / nova 4 site I need to add treeview with data from db and I found this
https://github.com/u12206050/nova-treeview package, but trying to install it I got error :
composer require u12206050/nova-treeview
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Symfony/Component/Console/Command/DumpCompletionCommand.php:48
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Symfony/Component/Console/Command/DumpCompletionCommand.php:56
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Composer/Autoload/AutoloadGenerator.php:879
Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/php/Composer/Autoload/AutoloadGenerator.php:884
In InitCommand.php line 971:
Could not find a matching version of package u12206050/nova-treeview. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (stable).
I use u12206050/nova-treeview package in the composer command and it does not look like misspelling, but what is wring and how to install this package ?
That's just the GitHub repository. By default, Composer installs packages from Packagist.org. You can see if the package is published there. If it's not, you can add the GitHub repo to your composer.json to install it.
That said, I'd stay away from this package. It's not actively maintained and hasn't been updated for several years. More importantly, its minimum-stability (in composer.json) is set to dev. That means it's not meant for production use and you would have to lower your project's minimum-stability to even install it.