运行命令行
$ composer config repo.packagist composer https://packagist.laravel-china.org
报下面错误:
[RuntimeException]
File "./composer.json" cannot be found in the current directory
解决:
加上 -g [ --global ] 就可以了,用全局配置就不用去找 composer.json 文件了
运行命令行
$ composer config repo.packagist composer https://packagist.laravel-china.org
报下面错误:
[RuntimeException]
File "./composer.json" cannot be found in the current directory
解决:
加上 -g [ --global ] 就可以了,用全局配置就不用去找 composer.json 文件了
本文标题:Composer 错误提示
本文链接:https://www.haomeiwen.com/subject/sjceuqtx.html
网友评论