【问题标题】:Yii2 composer update after cloning from bitbucket从 bitbucket 克隆后 Yii2 作曲家更新
【发布时间】:2018-11-14 13:38:16
【问题描述】:

所以我从 bitbucket 克隆了我的 Yii2 高级项目。它没有供应商文件夹,所以我必须运行composer update 来安装所有插件。但是当我这样做时,我得到一个错误:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - jlorente/yii2-widget-remainingcharacters dev-master requires bower-asset/jquery-remaining-characters ~1.0.0 -> no matching package found.
    - jlorente/yii2-widget-remainingcharacters 1.0.1 requires bower-asset/jquery-remaining-characters ~1.0.0 -> no matching package found.
    - jlorente/yii2-widget-remainingcharacters 1.0.0 requires bower-asset/jquery-remaining-characters ~1.0.0 -> no matching package found.
    - Installation request for jlorente/yii2-widget-remainingcharacters * -> satisfiable by jlorente/yii2-widget-remainingcharacters[1.0.0, 1.0.1, 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

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

所以我的要求不行。好的。我安装了jquery-remaining-characters ~1.0.0,但错误还是一样。这种问题已经发生过几次了,我想学习如何处理它。包名称中也没有拼写错误,我尝试使用 stabledev 最低稳定性选项。在这种情况下应该怎么做以及 composer/bower 包到底有什么问题?

【问题讨论】:

    标签: yii2 composer-php bower yii2-advanced-app


    【解决方案1】:

    您应该使用asset-packagist - 将其存储库添加到您的composer.json

    "repositories": [
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ]
    

    或者全局安装fxp/composer-asset-plugin

    composer global require "fxp/composer-asset-plugin:~1.4"
    

    【讨论】:

      猜你喜欢
      • 2019-09-28
      • 1970-01-01
      • 1970-01-01
      • 2015-12-01
      • 2015-06-19
      • 1970-01-01
      • 2015-09-11
      • 2016-08-30
      • 2020-03-20
      相关资源
      最近更新 更多