Laravel: Symfony\Component\Process\Exception\ProcessTimedOutException: The process "npm run build" exceeded the timeout of 60 seconds
A subprocess launched via the Process class or Process::run() exceeded its allowed time.
ProcessTimedOutException: The process exceeded the timeout of 60 secondsThe process exceeded the timeout of 60 secondsThe process has been signaled with signal 9 LaravelThe process exceeded the idle timeout Meaning
Processes default to a 60-second timeout. Increase it with ->setTimeout(300) / Process::timeout(300), set null for no timeout (careful), or run long jobs in queues. idle timeout triggers when there is no output for the set period.
Common causes
- Long build/artisan commands launched from PHP
- Default 60s timeout
- Waiting on interactive input
- Network-dependent command hanging
- idleTimeout reached
⚡ Quick fix
Process::timeout(300)->run('npm run build')or$process->setTimeout(300)- Run it asynchronously in a queued job
- Make commands non-interactive
Detailed fix by platform
Laravel
Process::timeout(600)->run(['composer', 'install', '--no-interaction']);
How to diagnose
- Command — Duration?
- Timeout — Value set?
- Input — Interactive?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- Attempt to read property "x" on null Laravel/PHP 8: ErrorException: Attempt to read property "name" on null
- Command "x" is not defined Laravel: Symfony\Component\Console\Exception\CommandNotFoundException: Command "make:livewire" is not defined. Did you mean one of these?
- cURL error 28: Operation timed out (Laravel HTTP client) Laravel: Illuminate\Http\Client\ConnectionException: cURL error 28: Operation timed out after 30001 milliseconds with 0 bytes received
Most viewed in Laravel
- MassAssignmentException Laravel: Illuminate\Database\Eloquent\MassAssignmentException: Add [x] to fillable property to allow mass assignment
- The GET method is not supported for route Laravel: The GET method is not supported for route x. Supported methods: POST (MethodNotAllowedHttpException)
- Route [login] not defined Laravel: Symfony\Component\Routing\Exception\RouteNotFoundException: Route [login] not defined
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 4 Nov 2026