M
M
Messi2018-07-19 15:51:51
npm
Messi, 2018-07-19 15:51:51

How to install npm-asset via composer?

Hello! Tell me, please, if there is, for example, a project on yii2, I install packages using composer. There is a js library, it says that the installation is via "npm install example.js".
How to install using composer?
Tried to do "composer require npm-asset/example", but the installation throws an error

Unknown downloader type: npm-signature. Available types: git, svn, fossil, hg, perforce, zip, rar, tar, gzip, xz, phar, file, path.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lllyx, 2019-06-29
@lllyx

Try
composer clear-cache
composer self-update
composer global require "fxp/composer-asset-plugin:^1.4.3"
composer install

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question