ufodisko's avatar

Error "stty: invalid argument" while creating new laravel app or new filament panel

I'm on Kubuntu (25.10) and I just tried creating a new laravel app using the laravel installer laravel new myapp and got this error

In Terminal.php line 114: stty: invalid argument '4500:5:f00bf:8a3b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0'

new [--dev] [--git] [--branch BRANCH] [--github [GITHUB]] [--organization ORGANIZATION] [--database DATABASE] [--react] [--vue] [--livewire] [--livewire-class-components] [--workos] [--no-authentication] [--pest] [--phpunit] [--npm] [--pnpm] [--bun] [--yarn] [--boost] [--using [USING]] [-f|--force] [--]

So I used composer to install it composer create-project --prefer-dist laravel/laravel myapp and it worked but I got the same error again when I tried to create a new filament panel after installing Filament php artisan filament:install --panels:

RuntimeException 
    
stty: invalid argument '4500:5:f00bf:8a3b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0'
    
at vendor/laravel/prompts/src/Terminal.php:114
        $stderr = stream_get_contents($pipes[2]);
        $code = proc_close($process);

         if ($code !== 0 || $stdout === false) {
            throw new RuntimeException(trim($stderr ?: "Unknown error (code: $code)"), $code);
        }
 
        return $stdout;
}
    
+19 vendor frames 
    
20  artisan:16
    Illuminate\Foundation\Application::handleCommand()
0 likes
4 replies
tykus's avatar
tykus
Best Answer
Level 104

Had this same problem a couple of weeks ago; problem with Rust coreutils apparently. Reverting to GNU stty solved the problem for now

1 like
nyambogahezron-133749469's avatar

~ laravel new example-app

_ _ | | | | | | __ _ _ __ __ ___ | | | | / | __/ _ \ \ / / _ \ | | || (| | | | (| |\ V / / | |_,|| _,| _/ ___|_|

┌ Which starter kit would you like to install? ────────────────┐ │ None │ └──────────────────────────────────────────────────────────────┘

In Terminal.php line 114:

stty: invalid argument '4500:5:f00bf:8a3b:3:1c:7f:15:4:0:1:0:11:13
:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0'

new [--dev] [--git] [--branch BRANCH] [--github [GITHUB]] [--organization ORGANIZATION] [--database DATABASE] [--react] [--vue] [--livewire] [--livewire-class-components] [--workos] [--npm] [--no-authentication] [--pest] [--phpunit] [--using [USING]] [-f|--force] [--]

nyambogahezron-133749469's avatar

the issues is that you are using the old broken Rust stty $ sudo update-alternatives --install /usr/bin/stty stty /usr/bin/gnustty 100 this one solved for me in ubuntu 25.10

secretiPy's avatar

Thanks, it solve it. Where did you find the answer? Just for learning

Please or to participate in this conversation.