Closed nazar-pc closed 7 years ago
lodash-amd
in my scenario is a dependency of npm-asset/scribe-plugin-sanitizer ^0.1
which I'm trying to install.
However, when I require it explicitly:
... requires npm-asset/lodash-amd 3.5.3 -> no matching package found
When added npm-asset/lodash-amd 3.5.0
dependency in addition to npm-asset/scribe-plugin-sanitizer ^0.1
it finally installed correct version.
$ composer require npm-asset/lodash-amd:3.5.0
This command works. On the other hand, the v3.5.3 is not registered in NPM, and the Github tags are formatted with -npm-packages
, it's for this reason that you cannot install this version.
Yes, it works when you install package directly. But try to install npm-asset/scribe-plugin-sanitizer:^0.1
.
Another example - for npm-asset/scribe-plugin-inline-styles-to-elements ^0.1
I'm getting source from 0.1.1
tag (which is the same as bower install scribe-plugin-inline-styles-to-elements#^0.1
), but NPM only has 0.1.0
version with completely different source.
In this case it feels like this plugin sometimes installs Bower packages (or suitable Git tags) even when NPM package is required.
Fixed by 1600e622457b41bdd95e2c266f0102b7b095f440.
It looks like version installed by
fxp/composer-asset-plugin
is just copied from GitHub (the same contents as here), however, NPM only knows following versions (no 3.5.3):Moreover, installing 3.5.0 using NPM results in very different contents of the
lodash-amd
directory: