Hemantha Dhanushka
Hemantha Dhanushka

Reputation: 163

Having a problem while getting the vendor folder for a symfony`project in Laravel Homestead environment

After I clone my symfony project to my workspace, I used composer install to get my project's vendor folder. I used Laravel Homestead as my working environment. Then it gives me below error.

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 89 installs, 0 updates, 0 removals
  - Installing ocramius/package-versions (1.4.0): Loading from cache
Plugin installation failed, rolling back
  - Removing ocramius/package-versions (1.4.0)

[RuntimeException]
  Could not delete /home/vagrant/code/oensys/project_test/server_side/vendor/ocramius/package-versions/src/PackageVersions:

Then I tried to the same thing after clear the cache (by using rm -rf ~/.composer/cache command) and delete the vendor folder which is created before, then it gives me the same error.

If anyone can help me with this, I really appreciate it.

Upvotes: 3

Views: 2268

Answers (2)

AlSan
AlSan

Reputation: 392

To resolve the issue follow the next steps:

composer install --no-plugins --no-scripts
composer install

Upvotes: 2

sarjon
sarjon

Reputation: 31

Try running composer install --no-plugins

See https://github.com/laravel/homestead/issues/1240 for other solutions.

Upvotes: 3

Related Questions