存在composer.lock文件时,Composer安装失败

时间:2018-06-25 18:44:08

标签: composer-php

我正在使用作曲家来管理项目中的依赖项。当我第一次进行“ composer安装”时,它会工作,创建供应商文件夹并创建composer.lock文件。然后,当我删除供应商文件夹并再次运行“ composer install”时,它将失败。

$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of 
packages.

Problem 1
- Installation request for drupal/drupal-driver v2.0.0-alpha3 -> 
satisfiable by drupal/drupal-driver[v2.0.0-alpha3].
- drupal/drupal-driver v2.0.0-alpha3 requires drupal/core-utility ^8.4 
-> no matching package found.
Problem 2
- drupal/drupal-driver v2.0.0-alpha3 requires drupal/core-utility ^8.4 
-> no matching package found.
- drupal/drupal-extension dev-master requires drupal/drupal-driver 
^2.0.0 -> satisfiable by drupal/drupal-driver[v2.0.0-alpha3].
- Installation request for drupal/drupal-extension dev-master -> 
satisfiable by drupal/drupal-extension[dev-master].

Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to 
your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for 
more details.
- It's a private package and you forgot to add a custom repository to 
find it

这里可能是什么原因?有什么建议吗?

-C

0 个答案:

没有答案