php composer.phar 抛出异常
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php composer.phar 抛出异常相关的知识,希望对你有一定的参考价值。
php composer.phar require --prefer-dist light/yii2-swagger "~1.0.4" --dev抛出异常如下:
failed to open stream: Permission denied
https://packagist.phpcomposer.com could not be fully loaded, package information was loaded from the local cache and may be out of date
解决办法:
sudo chown -R $USER ~/.composer/
以上是关于php composer.phar 抛出异常的主要内容,如果未能解决你的问题,请参考以下文章