zoukankan      html  css  js  c++  java
  • Composer Your requirements could not be resolved to an installable set of packages

    Composer install 时候报错:

    Composer update 时候报错:

    Your requirements could not be resolved to an installable set of packages

    Problem 1

    Root composer json requires topthink/framework 5 1.*, found topthink/framework [v5. 1. 41] in the lock file but not in remote repositories, make sure you av d updating this package to keep the one from the lock file

    解决方案一:

    composer update --ignore-platform-regs

    使用强制安装更新

    解决方案二:

    更换composer镜像地址;

    使用:

    "repositories": {

            "packagist": {

                "type": "composer",

                "url": "https://packagist.phpcomposer.com"

            }

        }

    或者:

    "repositories": {

         "packagist": {

            "type": "composer",

            "url": "https://packagist.org"

        }

    }

    切换 镜像地址后一般可以解决这个问题;

    其他问题 :

    出现The "topthink/think-installer" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.1.0")

    解决步骤:

    ①清除composer之前的镜像:composer config -g --unset repos.packagist

    ②更新thinkPHP版本:composer update topthink/framework  --no-plugins

    ③重新安装插件:composer update

    其他解决方案:

    ①     切换项目文件夹

    ②     运行:composer config -g repo.packagist composer https://packagist.org

    文章来源:刘俊涛的博客欢迎关注公众号、留言、评论,一起学习。

    __________________________________________________________________________________

    若有帮助到您,欢迎点击推荐,您的支持是对我坚持最好的肯定(*^_^*)

  • 相关阅读:
    系统数据查询耗时优化解决方案
    Mybatis逆向工程
    微服务架构下的分布式数据管理
    分布式或微服务架构中的分布式锁应用
    word 常用宏代码
    office2003?2007共存?版本各自打开的解决方案
    word域3
    2014新版《安全生产法》测试题
    Excel与Word套打功能使用技巧及EXCEL数据处理成绩
    word域2
  • 原文地址:https://www.cnblogs.com/lovebing/p/15684815.html
Copyright © 2011-2022 走看看