废弃的包怎么删除呢?

Dav*_*ath 10 laravel-5

我试图从我的项目中删除一个废弃的包,但在我的 shell 中收到以下警告:

Package jakub-onderka/php-console-color is abandoned, you should avoid using it. Use php-parallel-lint/php-console-color instead.
Package jakub-onderka/php-console-highlighter is abandoned, you should avoid using it. Use php-parallel-lint/php-console-highlighter instead.
Run Code Online (Sandbox Code Playgroud)

我已经安装了新软件包,但警告仍然继续显示。我怎样才能摆脱这个警告?

先感谢您!

Dar*_*lor 8

这些包由nunomaduro/collisionLaravel 依赖项使用。

软件包创建者在推特上指出该问题已于 2020 年 4 月 4 日*

因此,composer update应该引入collision没有依赖项的新版本并删除警告。

请注意:这些包也可能被您正在使用的其他 Composer 包使用,因此不能保证这会起作用。

* 推文:https : //twitter.com/enunomaduro/status/1246531267023290370


Jan*_*sen 6

通常可以使用以下命令找出依赖于过时软件包的内容:

composer depends --tree jakub-onderka/php-console-color
Run Code Online (Sandbox Code Playgroud)

在这种情况下,它可能会显示如下内容:

jakub-onderka/php-console-color v0.2
???jakub-onderka/php-console-highlighter v0.4 (requires jakub-onderka/php-console-color ~0.2)
   ???psy/psysh v0.9.9 (requires jakub-onderka/php-console-highlighter 0.3.*|0.4.*)
      ???laravel/tinker v1.0.8 (requires psy/psysh 0.7.*|0.8.*|0.9.*)
         ???your/project (requires laravel/tinker ^1.0)
Run Code Online (Sandbox Code Playgroud)


小智 1

请忽略警告,直到将其作为包依赖项从冲突包中删除

请参阅:https ://laracasts.com/discuss/channels/laravel/jakub-onderka-package-abandoned-warnings