Answer the question
In order to leave comments, you need to log in
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"
}
composer require "npm-asset/atob"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question