installers icon indicating copy to clipboard operation
installers copied to clipboard

Package not being stored in custom directory

Open welly opened this issue 9 years ago • 5 comments

Pretty new to using composer/installers so may have missed something but my composer.json looks like:

{
    "name": "alastair/tmp",
    "authors": [
        {
            "name": "Alastair Moore",
            "email": "[email protected]"
        }
    ],
    "require": {
        "composer/installers": "^1.2",
        "dimsemenov/Magnific-Popup": "^1.1"
    },
    "extra": {
        "installer-paths": {
            "libraries/{$name}/": [
                "vendor:dimsemenov"
            ]
        }
    }
}

However I'm finding that the package dimsemenov/Magnific-Popup is still landing in the vendors directory. I assume I've missed something, could anyone suggest what?

Thanks,

welly

welly avatar Mar 02 '17 11:03 welly

Similar with my problem. I am using Yii2. At the beginning, when i use this "vendor/bower/{$name}/": ["vendor:bower-asset"] it was installed in the correct folder. After recent updates, it is failed to detect the vendor, and installed in the default folder.

haqqi avatar Mar 08 '17 08:03 haqqi

@haqqi could you tell me which version working ok for you?

drupality avatar Apr 06 '17 13:04 drupality

Same problem with v1.2.0 and I note that the extra portion of the package info doesn't get written to composer.lock.

seanr avatar Jan 06 '18 19:01 seanr

I thought I had this issue until I realized the installer-paths are tried in order. Turned out I had a "conflicting" path a bit above mine. After correcting the order the install location is correct.

JorisVanEijden avatar Feb 02 '18 14:02 JorisVanEijden

Closing due to quiet period. Please re-open if still applicable.

alcohol avatar Apr 05 '18 06:04 alcohol