Reputation: 163
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
Reputation: 392
To resolve the issue follow the next steps:
composer install --no-plugins --no-scripts
composer install
Upvotes: 2
Reputation: 31
Try running composer install --no-plugins
See https://github.com/laravel/homestead/issues/1240 for other solutions.
Upvotes: 3