欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

解决composer install遇到:No lock file found.。。 Your requirements could not be resolved to an installable

程序员文章站 2022-06-24 20:34:27
...

1.错误提示

No lock file found. Updating dependencies instead of installing from lock file. Use composer update over composer install if you do not have a lock file.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

2.解决办法:直接忽略版本就是了

composer install --ignore-platform-reqs 或者 composer update --ignore-platform-reqs

3.成功

21 package suggestions were added by new dependencies, use `composer suggest` to see details.
Package mtdowling/cron-expression is abandoned, you should avoid using it. Use dragonmantank/cron-expression instead.
Generating autoload files
10 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
相关标签: php git phpstorm