I can't install Laravel

I am running composer global require "laravel/installer"

I'm getting the following output

brian@brian-XPS-13:~$ composer global require "laravel/installer"
Changed current directory to /home/brian/.composer
Cannot create cache directory /home/brian/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/brian/.composer/cache/files/, or directory is not writable. Proceeding without cache
./composer.json is not writable.

Open in new window


I'm running Ubuntu 16.04.
burnedfacelessAsked:
Who is Participating?
 
Julian HansenConnect With a Mentor Commented:
Looks like a permission problem - have you ruled that out?

Check your composer.json file permissions and make sure it is owned by an account that you can change.
0
 
burnedfacelessAuthor Commented:
Yea it works now
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.