美文网首页
2021-09-09-Composer Error

2021-09-09-Composer Error

作者: xiaojianxu | 来源:发表于2021-09-09 18:35 被阅读0次

    错误 #1:Composer install cant find composer.json

    Composer install cant find composer.json

    Composer could not find the config file:

    E:\phpstudy\phpstudy_pro\Extensions\composer1.8.5

    解决办法:

    删除掉 Windows 10 环境变量 composer,该变量是 phpstudy 安装过程中,自动添加的。

    删除 phpstudy 指定的 composer, 重新安装 composer,则 composer.json not found 报错消失。


    错误 #2: Your requirements could not be resolved to an installable set of packages.

    解决办法:指定全局使用 阿里云镜像

    composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
    

    参考链接:COMPOSER 阿里云镜像

    Composer could not find the config file: E:\phpstudy\phpstudy_pro\Extensions\composer1.8.5
    composer install
    No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
    Loading composer repositories with package information

    Updating dependencies
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - Root composer.json requires dcat/laravel-admin, it could not be found in any version, there may be a typo in the package name.
      Problem 2
        - Root composer.json requires fideloper/proxy, it could not be found in any version, there may be a typo in the package name.
      Problem 3
        - Root composer.json requires laravel/framework, it could not be found in any version, there may be a typo in the package name.
      Problem 4
        - Root composer.json requires laravel/tinker, it could not be found in any version, there may be a typo in the package name.
      Problem 5
        - Root composer.json requires beyondcode/laravel-dump-server, it could not be found in any version, there may be a typo in the package name.
      Problem 6
        - Root composer.json requires filp/whoops, it could not be found in any version, there may be a typo in the package name.
      Problem 7
        - Root composer.json requires fzaninotto/faker, it could not be found in any version, there may be a typo in the package name.
      Problem 8
        - Root composer.json requires mockery/mockery, it could not be found in any version, there may be a typo in the package name.
      Problem 9
        - Root composer.json requires nunomaduro/collision, it could not be found in any version, there may be a typo in the package name.
      Problem 10
        - Root composer.json requires phpunit/phpunit, it could not be found in any version, there may be a typo in the package name.
    
    

    相关文章

      网友评论

          本文标题:2021-09-09-Composer Error

          本文链接:https://www.haomeiwen.com/subject/mocwwltx.html