其他分享
首页 > 其他分享> > Composer Your requirements could not be resolved to an installable set of packages

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"

    }

}

 

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

 

 

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

__________________________________________________________________________________

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

标签:resolved,set,requirements,composer,repositories,报错,Composer,packagist
来源: https://www.cnblogs.com/lovebing/p/15684815.html