Monday, January 24, 2022

[FIXED] Updating composer after adding a dependency in Laravel 4 gives me error

Issue

I get the following error on a fresh Laravel 4 install after adding a new dependency to the composer.json and running composer update. Any ideas?

[RuntimeException]
Source directory /var/www/projects/adcraft/vendor/laravel/framework has uncommitted changes. 

Solution

You could go in that vendor/laravel/framework directory and run git status to see what changes there are. Anyway if you self-update composer to its latest version, it should now prompt you and ask if you want to revert those changes before updating instead of failing hard.



Answered By - Seldaek

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.