Welcome to the Treehouse Community
Looking to learn something new?
Jenny Swift21,999 Points
I'm told to update composer and then I get an error.
So when I run the 'composer' command in my terminal, I'm told:
Warning: This development build of composer is over 30 days old. It is recommended to update it by running "/usr/local/bin/composer self-update" to get the latest version.
So I ran this command:
vagrant@homestead:~/Sites$ /usr/local/bin/composer self-update
And then got this:
[Composer\Downloader\FilesystemException] Filesystem exception: Composer update failed: the "/usr/local/bin/composer" file could not be written
self-update [-r|--rollback] [--clean-backups] [version]
What should I do please?
Chris Shaw26,650 Points
Simply run the command as
sudo and composer will update without any issues.
sudo /usr/local/bin/composer self-update
Hope that helps.
Nathan WilliamsPython Web Development Techdegree Student 6,851 Points
That's just a warning, so you should feel free to ignore it; all the composer commands you need to run for the course should work just fine.
Even so, thanks for the heads up on the warning message, we'll get that updated and ship out an update sometime soon.