Composer error on jqueryui

Hi all.
Do anyone experienced problems in composer update?
Starting from yesterday, it returns me an error on all of my projects. I didn’t installed any new module or extension, so I cannot understand what is going on.
The error is:

[Composer\Repository\InvalidRepositoryException]`
No valid bower.json was found in any branch or tag of ` `https://github.com/components/jqueryui.git` `, could not load a package from it.

I can paste here my composer.json (who isn’t changed at all from my last update), but the first question is:
Are you also experiencing problems with Composer update?

My composer.json is:

{
"name": "beintech/myproject",
"description": "myproject",
"keywords": [
    "yii2"
],
"homepage": "http://myprojectpage",
"type": "project",
"license": "BSD-3-Clause",
"support": {
    "issues": "https://github.com/yiisoft/yii2/issues?state=open",
    "forum": "http://www.yiiframework.com/forum/",
    "wiki": "http://www.yiiframework.com/wiki/",
    "irc": "irc://irc.freenode.net/yii",
    "source": "https://github.com/yiisoft/yii2"
},
"minimum-stability": "stable",
"require": {
    "php": ">=5.4.0",
    "yiisoft/yii2": "~2.0.6",
    "yiisoft/yii2-bootstrap": "~2.0.0",
    "yiisoft/yii2-swiftmailer": "^2.1",
    "dmstr/yii2-adminlte-asset": "^2.6",
    "kartik-v/yii2-widgets": "^3.4",
    "kartik-v/yii2-helpers": "^1.3",
    "kartik-v/yii2-widget-activeform": "^1.4",
    "kartik-v/yii2-datecontrol": "^1.9",
    "kartik-v/yii2-editable": "^1.7",
    "kartik-v/yii2-dropdown-x": "^1.2",
    "kidzen/yii2-dynamicform": "^2",
    "kartik-v/yii2-tabs-x": "^1.2",
    "rmrevin/yii2-ionicon": "^1.2",
    "kartik-v/yii2-date-range": "^1.6",
    "kartik-v/php-date-formatter": "^1.3",
    "kartik-v/yii2-export": "^1.2",
    "webtoucher/yii2-js-cookie": "^1.0",
    "lajax/yii2-translate-manager": "~1.7",
    "mdmsoft/yii2-admin": "~2.0",
    "elvenpath/yii2-eu-vatvalidator": "^1.1",
    "kartik-v/yii2-widget-select2": "2.0",
    "kartik-v/yii2-slider": "^1",
    "npm-asset/moment": "V2.22.0",
    "npm-asset/jquery": "V3.3.1",
    "npm-asset/fullcalendar": "V3.8.0",
    "letsjump/yii2-easy-ajax": "v0.*"
},
"require-dev": {
    "yiisoft/yii2-debug": "~2.0.0",
    "yiisoft/yii2-gii": "~2.0.0",
    "yiisoft/yii2-faker": "~2.0.0",
    "codeception/base": "^2.2.3",
    "codeception/verify": "~0.3.1"
},
"config": {
    "process-timeout": 1800
},
"repositories": [
    {
        "type": "composer",
        "url": "https://asset-packagist.org"
    },
    {
        "type": "path",
        "url": "backend/runtime/tmp-extensions/yii2-easy-ajax"
    }
]
}

Hi @letsjump,

No, composer keeps working fine in my environment today.

From the error message, I guess some of your required packages needs jquery-ui and it is causing the error.

Anyway, why don’t you examine with composer diagnose?
https://getcomposer.org/doc/articles/troubleshooting.md

1 Like

You were right:
I had some warnings because some of my package versions were too strict (“V3.8.0” instead of “^3.8”) and my docker containers that were copied from another project had the global extension fxp/composer-asset-plugin installed.
So I removed it with
composer global remove fxp/composer-asset-plugin
Now everything works as expected.
Thanks

1 Like