laravel/framework

Laravel install fails on Windows install:features

Open

#60253 opened on May 24, 2026

View on GitHub
 (2 comments) (0 reactions) (0 assignees)PHP (34,705 stars) (11,882 forks)batch import
help wanted

Description

Laravel Version

13.11.2

PHP Version

8.5.4

Database Driver & Version

No response

Description

On Windows 11, running laravel new fails during the post-autoload scripts when artisan install:features is executed. The command triggers an interactive prompt, which causes the Composer script to fail with exit code 255.

> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   INFO  Discovering packages.

  inertiajs/inertia-laravel ................................................................................................................... DONE
  laravel/fortify ............................................................................................................................. DONE
  laravel/pail ................................................................................................................................ DONE
  laravel/pao ................................................................................................................................. DONE
  laravel/passkeys ............................................................................................................................ DONE
  laravel/sail ................................................................................................................................ DONE
  laravel/tinker .............................................................................................................................. DONE
  laravel/wayfinder ........................................................................................................................... DONE
  nesbot/carbon ............................................................................................................................... DONE
  nunomaduro/collision ........................................................................................................................ DONE
  nunomaduro/termwind ......................................................................................................................... DONE

87 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan install:features --ansi

  Which authentication features would you like to enable? [email-verification,registration,2fa,passkeys,password-confirmation]
  None .............................................................................................................................................
  Email verification ............................................................................................................ email-verification
  Registration ........................................................................................................................ registration
  Two-factor authentication .................................................................................................................... 2fa
  Passkeys ................................................................................................................................ passkeys
  Password confirmation ...................................................................................................... password-confirmation

Script @php artisan install:features --ansi handling the post-update-cmd event returned with error code 255

Steps To Reproduce

laravel new

Observe failure during post-autoload-dump

Contributor guide