Composer could not find a composer.json

如果使用composer安装Laravel框架时会出以下错误,代表着composer的权限问题

[InvalidArgumentException]

Composer could not find a composer.json


解决方法:

修改composer权限

chmod +x /usr/local/bin/composer

再次执行安装Laravel框架指令即可


  • 1197
  • A+
发布时间:2018-05-29 20:15:28