PHP 7.4.3Laravel 版本:7.24我只是尝试作曲家要求 laravel/telescope 和作曲家安装失败。Using version ^4.0 for laravel/telescope./composer.json has been updatedLoading composer repositories with package informationUpdating dependencies (including require-dev)Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for laravel/telescope ^4.0 -> satisfiable by laravel/telescope[4.x-dev, v4.0.0]. - Can only install one of: laravel/framework[v7.28.1, 8.x-dev]. - Can only install one of: laravel/framework[8.x-dev, v7.28.1]. - Can only install one of: laravel/framework[8.x-dev, v7.28.1]. - Conclusion: install laravel/framework 8.x-dev - Installation request for laravel/framework (locked at v7.28.1, required as ^7.24) -> satisfiable by laravel/framework[v7.28.1].Installation failed, reverting ./composer.json to its original content.作曲家.json"require": { "php": "^7.2.5", "fideloper/proxy": "^4.2", "fruitcake/laravel-cors": "^2.0", "guzzlehttp/guzzle": "^6.3", "intervention/image": "^2.5", "laravel/framework": "^7.24", "laravel/tinker": "^2.0", "laravel/ui": "^2.1" },
5 回答
吃鸡游戏
TA贡献1829条经验 获得超7个赞
composer require laravel/telescope "^3.0"
应该让它发挥作用。ps 我在我从事的大多数项目中都使用 Laravel 7,并且不得不尝试 Laravel 7 和望远镜包之间的不同组合。telescope ^3.0
似乎是 Laravel 7 的最新兼容版本。
阿波罗的战车
TA贡献1862条经验 获得超6个赞
我也有同样的问题。
composer require laravel/telescope "^2.0"
那是成功的
- Installation request for laravel/framework (locked at v7.28.1, required as ^7.24) -> satisfiable by laravel/framework[v7.28.1].
告诉你发生了什么事。您正在处理的项目已锁定到 laravel/framework v7.28.1。当前版本的 Telescope 需要 laravel/framework ^8.0。也许您将能够使用望远镜 v3.0。
喵喔喔
TA贡献1735条经验 获得超5个赞
这帮助我解决了同样的问题
composer require laravel/framework -W
和
composer require laravel/telescope
守着星空守着你
TA贡献1799条经验 获得超8个赞
尝试
composer require laravel/telescope
它更新了我的望远镜laravel/telescope": "^4.9
然后我跑了composer update -w
我很高兴可以走了。
哦,我需要提到该项目已在laravel/framework": "^7.24|^8.0
但我添加了 ^8.0 并做了同样的事情php": "^7.2.5|^8.0
- 5 回答
- 0 关注
- 123 浏览
添加回答
举报
0/150
提交
取消