Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
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,676 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.