Terminfo file does not exist
enesbsafak opened this issue · 1 comments
enesbsafak commented
Hello,
In my newly created laravel project, when I enter the "php artisan tinker" command in the terminal, I get the following error.
Laravel Framework 9.18.0
APACHE PHP: 8.1.0 ( MAMP )
MYSQL 5.7.24
Psy\Readline\Hoa\ConsoleException
Terminfo file does not exist.
at C:\MAMP\htdocs\dbyeni\vendor\psy\psysh\src\Readline\Hoa\ConsoleTput.php:592
588▕ */
589▕ protected function parse(string $terminfo): array
590▕ {
591▕ if (!\file_exists($terminfo)) {
➜ 592▕ throw new ConsoleException('Terminfo file %s does not exist.', 0, $terminfo);
593▕ }
594▕
595▕ $data = \file_get_contents($terminfo);
596▕ $length = \strlen($data);
1 C:\MAMP\htdocs\dbyeni\vendor\psy\psysh\src\Readline\Hoa\ConsoleTput.php:581
Psy\Readline\Hoa\ConsoleTput::parse()
2 C:\MAMP\htdocs\dbyeni\vendor\psy\psysh\src\Readline\Userland.php:68
Psy\Readline\Hoa\ConsoleTput::__construct()
solutions I have tried : downgrade : composer require psy/psysh:0.11.2 --dev
I'm waiting for your help.