码迷,mamicode.com
首页 > Web开发 > 详细

php composer.phar 抛出异常

时间:2019-04-27 18:21:20      阅读:305      评论:0      收藏:0      [点我收藏+]

标签:perm   pack   from   com   chown   ssi   php   stream   yii2   

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 抛出异常

标签:perm   pack   from   com   chown   ssi   php   stream   yii2   

原文地址:https://blog.51cto.com/13238147/2385686

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!