Sometimes when I run composer update to upgrade the laravel project, a content-length mismatch exception might occur. Finally, I get this is because of the terrible firewall
I had the same problem while installing laravel on my Windows machine, I was using git bash for running following command.
composer global require "laravel/installer=~1.1"
I switched to the normal command prompt then it worked without any errors.