[ErrorException]
file_put_contents(/Users/didi/.composer/cache/repo/http—artifactory./packages.json): failed to open stream:
No such file or directory
sudo chown -R $USER ~/.composer/
https://stackoverflow.com/questions/41212362/composer-file-put-contents-composer-json-failed-to-open-stream-permission?rq=1
https://stackoverflow.com/questions/32670582/composer-failed-to-open-stream-permission-denied
https://github.com/MiniCodeMonkey/Vagrant-Laravel-Stack/issues/2
https://stackoverflow.com/questions/46959985/laravel-5-show-errorexception-file-put-contents-failed-to-open-stream-no-such-f
COMPOSER_HOME=/some/writable/path php composer.phar update
https://stackoverflow.com/questions/24750973/file-put-contentsconfig-json-failed-to-open-stream-no-such-file-or-directory
https://github.com/composer/composer/issues/6854
原因是因为公司的私有仓库使用的:artifactory
只支持composer 1.4.1版本