composer 安装包,提示找不到对应的包,很奇怪的问题,备忘

    1. PS E:\phpstudy_pro\WWW\yzjy-live> composer require tinymeng/tools v1.2.0
    2. [InvalidArgumentException]
    3. Could not find package tinymeng/tools in a version matching "v1.1.7" and a stability matching "dev".
    4. PS E:\phpstudy_pro\WWW\yzjy-live> composer require tinymeng/tools v1.2.0
    5. [InvalidArgumentException]
    6. Could not find package tinymeng/tools in a version matching "v1.2.0" and a stability matching "dev".
    7. require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-wit
    8. -authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>]...

    清除compser缓存

     composer clear-cache
    

    清除镜像

    composer config -g --unset repos.packagist