slince / composer-registry-manager

:hammer_and_wrench: :hammer: Composer registry manager that help to easily switch to the composer repository you want.
MIT License
555 stars 49 forks source link

更新到最新版 crm 再执行 composer repo:ls 依旧返回上一个版本的源 #8

Closed xiegangd closed 5 years ago

xiegangd commented 5 years ago

在从来没安装过 crm 的 linux 服务器上,安装 crm 一切正常

但是,在之前安装过旧版本 crm 的 mac 电脑上,删除并重新安装 crm 再执行 composer repo:ls 依旧返回上一个版本的源

➜  ~ composer repo
 _____   _____        ___  ___
/  ___| |  _  \      /   |/   |
| |     | |_| |     / /|   /| |
| |     |  _  /    / / |__/ | |
| |___  | | \ \   / /       | |
\_____| |_|  \_\ /_/        |_|

Composer Repository Manager version 2.0.0
......

➜  ~ composer repo:ls
 --- ---------------- --------------------------------------
  *   composer         https://packagist.org
      phpcomposer      https://packagist.phpcomposer.com
      composer-proxy   https://packagist.composer-proxy.org
      laravel-china    https://packagist.laravel-china.org
 --- ---------------- --------------------------------------
slince commented 5 years ago

已保存的源数据是更新在 全局composer 目录下的 config.json 文件里;只要这个配置里有数据就不会加载新的数据; 建议你修改下 config.json 文件移除 config => _repositories key值,