[ErrorException] file_put_contents(./composer.lock): failed to open stream: Read-only file system code example
Example: [ErrorException] file_put_contents(./composer.json): failed to open stream: Permission denie d
sudo chown -R $USER ~/.composer/
sudo chown -R $USER ~/.composer/