Yosemite file permissions/ownership issue
I found the solution which was much more localised.

I needed to chown -R my composer directory. For some reason, I wasn't the owner. After running this command, the issue was resolved.