diff --git a/src/Composer/Installer/LibraryInstaller.php b/src/Composer/Installer/LibraryInstaller.php index 817f91c22..cf5805c38 100644 --- a/src/Composer/Installer/LibraryInstaller.php +++ b/src/Composer/Installer/LibraryInstaller.php @@ -140,6 +140,7 @@ class LibraryInstaller implements InstallerInterface */ public function getInstallPath(PackageInterface $package) { + $this->initializeVendorDir(); $targetDir = $package->getTargetDir(); return ($this->vendorDir ? $this->vendorDir.'/' : '') . $package->getPrettyName() . ($targetDir ? '/'.$targetDir : '');