code: public function getInstallPath(PackageInterface $package)
      {
          $this->initializeVendorDir();
  
          $basePath = ($this->vendorDir ? $this->vendorDir.'/' : '') . $package->getPrettyName();
          $targetDir = $package->getTargetDir();
  
          return $basePath . ($targetDir ? '/'.$targetDir : '');
      }
docs: {@inheritDoc}