This is the command I run:
composer global require "laravel/installer"
and this is the text and error I got after that:
Changed current directory to /home/dimitar/.composer
./composer.json is not writable.
I'm running Ubuntu 16.04 LTS and PHP 7 and Composer version 1.3.0 and running this command from my home folder.