简体   繁体   中英

Cannot Install tinker Laravel 5.1

Cannot install tinker on Laravel 5.1. Composer version is 1.9.0 . Here is the composer log: https://pastebin.com/aajb0m7p I tried to remove vendor folder and install back, but that doesn't help. Is there any workaround? I would like to use tinker to test some of my API endpoints and don't waste time doing that by using UI.

UPD I'm getting these conflict messages because I have installed lumen-framework 5.1.7 which requires symfony/var-dumper 2.7.* . But the earlier version of tinker 1.0.0 and it requires at least symfony/var-dumper ~3.0 . Is there any other workaround for me to test my Laravel endpoints without using UI?

As written in packagist , tinker need symfony/var-dumper on ~3.0|~4.0 but it seems that you have 2.7.51 installed. Try to update symfony/var-dumper to at least 3.0 then require laravel/tinker

The problem is that you have a package which has a dependency to symfony/var-dumper on some version

and also the version of laravel tinker that you are trying to install also has dependency on different symfony/var-dumper version and they get conflict in version

so in your case what you can do is to find the package which uses symfony/var-dumper and update it to have same dependency with laravel tinker OR you can install a specific version of laravel tinker which has a lower dependency on symfony var dumper

\n

for example : composer require laravel/tinker:^1.0.1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM