V
V
Valery Chupurnov2018-01-29 10:42:19
npm
Valery Chupurnov, 2018-01-29 10:42:19

Why doesn't composer find npm-asset?

Good time. I made a yii2 widget for my Jodit editor .
https://github.com/jodit/yii2-jodit
When installing
composer require jodit/yii2-jodit
it says that

jodit/yii2-jodit 1.1.4 requires npm-asset/jodit ^3.1.0 -> no matching package found.

although the `composer.json` widget repository says
"repositories": [
      {
        "type": "composer",
        "url": "https://asset-packagist.org"
      }
    ],

and there is such a package.
Moreover, if you simply add to your `composer.json` by hand
"repositories": [
      {
        "type": "composer",
        "url": "https://asset-packagist.org"
      }
    ],
    "require": {
        "npm-asset/jodit": "^3.1.0"
    },

Then it is installed. Do not ask users to register it in the composer.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question