PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, January 24, 2022

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

 January 24, 2022     composer-php, laravel, laravel-4     No comments   

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
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

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

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing