Composer can’t remove file on composer instal

  Uncategorized

I have removed the vendor folder and composer.lock file. When I run sudo -u www-data composer install -vv I get this error:

- Installing composer/package-versions-deprecated (1.11.99.1): Reading /home/vagrant/.composer/cache/files/composer/package-versions-deprecated/152d7deed07370b5fdb649027a98c4feafa4d280.zip from cache
Loading from cache
 Extracting archiveExecuting command (CWD): unzip -qq  '/vagrant/vendor/composer/package-versions-deprecated/6e763dced6ae19f651e467316dde4d01' -d '/vagrant/vendor/composer/29297821'
Plugin installation failed (include(/vagrant/vendor/composer/package-versions-deprecated/src/PackageVersions/Installer.php): failed to open stream: No such file or directory), rolling back
  - Removing composer/package-versions-deprecated (1.11.99.1)


  [RuntimeException]
  Could not delete /vagrant/vendor/composer/package-versions-deprecated/src/PackageVersions:

Source: Composer php

LEAVE A COMMENT