从bitbucket克隆后的Yii2编写器更新

从bitbucket克隆后的Yii2编写器更新,yii2,composer-php,bower,yii2-advanced-app,Yii2,Composer Php,Bower,Yii2 Advanced App,所以我从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-asse

所以我从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.
无法将您的需求解析为一组可安装的软件包。
问题1
-jlorente/yii2 widget remainingcharacters dev master需要bower资产/jquery剩余字符~1.0.0->未找到匹配的包。
-jlorente/yii2 widget remainingcharacters 1.0.1需要bower asset/jquery剩余字符~1.0.0->未找到匹配的包。
-jlorente/yii2 widget remainingcharacters 1.0.0需要bower asset/jquery剩余字符~1.0.0->未找到匹配的包。
-jlorente/yii2小部件remainingcharacters*->jlorente/yii2小部件remainingcharacters可满足的安装请求[1.0.0,1.0.1,开发主机]。
潜在原因:
-软件包名称中的输入错误
-根据您的最低稳定性设置,该软件包没有足够稳定的版本
有关更多详细信息,请参阅。
-这是一个私有包,您忘记添加自定义存储库来查找它
阅读了解更多常见问题。
所以我的要求不合适。好。我安装了
jquery剩余字符~1.0.0
,但错误仍然相同。这种问题已经发生过几次了,我想学习如何处理它。另外,包名中没有输入错误,我尝试了
stable
dev
最小稳定性选项。在这种情况下,应该做什么以及composer/bower packeges的具体问题是什么?

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

"repositories": [
    {
        "type": "composer",
        "url": "https://asset-packagist.org"
    }
]
或全局安装:

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