Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

telescope install fails on laravel-7.25

PHP 7.4.3

Laravel Version: 7.24

I just tried to composer require laravel/telescope and composer install failed.

Using version ^4.0 for laravel/telescope
./composer.json has been updated
Loading composer repositories with package information
Updating 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.

composer.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"
    },
like image 652
Anwarul Azim Avatar asked Dec 14 '22 08:12

Anwarul Azim


2 Answers

composer require laravel/telescope "^3.0"

should bring it to work. p.s. I am using Laravel 7 for most of projects I worked on and had to try different combinations between Laravel 7 and telescope package. telescope ^3.0 seems to be the latest compatible version with Laravel 7.

like image 193
seedme Avatar answered Dec 20 '22 09:12

seedme


I was having the same issue.

composer require laravel/telescope "^2.0" 

was successful

- Installation request for laravel/framework (locked at v7.28.1, required as ^7.24) -> satisfiable by laravel/framework[v7.28.1].

Tells you what is going on. The project you are working on is locked to laravel/framework v7.28.1. The current version of Telescope requires laravel/framework ^8.0. Maybe you will be able to use telescope v3.0.

like image 45
Meechew Avatar answered Dec 20 '22 08:12

Meechew