composer中文镜像配置失败!帮忙看看

bogon:~ apple$ composer config -g repo.packagist


                                            

  [InvalidArgumentException]                

  There is no packagist repository defined  

                                            


config [-g|--global] [-e|--editor] [-a|--auth] [--unset] [-l|--list] [-f|--file FILE] [--absolute] [--] [<setting-key>] [<setting-value>]...


bogon:~ apple$ composer config -g repo.packagist composer https://packagist.phpcomposer.com

bogon:~ apple$ composer config -g repo.packagist


                                            

  [InvalidArgumentException]                

  There is no packagist repository defined  

                                            


config [-g|--global] [-e|--editor] [-a|--auth] [--unset] [-l|--list] [-f|--file FILE] [--absolute] [--] [<setting-key>] [<setting-value>]...


bogon:~ apple$ config -gl

-bash: config: command not found

bogon:~ apple$ composer config -g repo.packagist composer https://packagist.phpcomposer.com

bogon:~ apple$ composer config -g repo.packagist


                                            

  [InvalidArgumentException]                

  There is no packagist repository defined  

                                            


config [-g|--global] [-e|--editor] [-a|--auth] [--unset] [-l|--list] [-f|--file FILE] [--absolute] [--] [<setting-key>] [<setting-value>]...


bogon:~ apple$ composer config -g repo.packagist composer https://packagist.phpcomposer.com

bogon:~ apple$ config -gl

-bash: config: command not found

bogon:~ apple$ 

在mac操作系统下我在命令行里输入相应命令时请问我这边怎么都是 not found呀?都找不到这个东西存在。是不是哪里没配置好还是怎么滴?帮忙帮忙呀!

xiexie !

_莫凡
浏览 5917回答 2
2回答
打开App,查看更多内容
随时随地看视频慕课网APP