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

淩亂°似流年 2021-08-31 06:08 1982阅读 0赞

1.错误提示

  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.
  2. Loading composer repositories with package information
  3. Updating dependencies
  4. Your requirements could not be resolved to an installable set of packages.

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

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

3.成功

  1. 21 package suggestions were added by new dependencies, use `composer suggest` to see details.
  2. Package mtdowling/cron-expression is abandoned, you should avoid using it. Use dragonmantank/cron-expression instead.
  3. Generating autoload files
  4. 10 packages you are using are looking for funding.
  5. Use the `composer fund` command to find out more!

发表评论

表情:
评论列表 (有 0 条评论,1982人围观)

还没有评论,来说两句吧...

相关阅读