M
M
MUTOgen4eg2017-06-07 12:54:57
Yii
MUTOgen4eg, 2017-06-07 12:54:57

Why does composer not find npm package?

A strange problem has arisen.
In a Yii2 project, you need to connect some npm-based assets .
To do this, the composer has a plugin "fxp/composer-asset-plugin", which is actually by default.
Composer.json also has path settings:

"asset-installer-paths": {
            "npm-asset-library": "vendor/npm",
            "bower-asset-library": "vendor/bower"
        }

After that I try to make require
composer require "npm-asset/atob"
As a result this package is not found at all. Although, if you do npm install it, everything is fine. But the problem is that this needs to be done via 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