laravel/framework

Laravel install fails on Windows install:features

Open

#60,253 创建于 2026年5月24日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)PHP (34,705 star) (11,882 fork)batch import
help wanted

描述

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

贡献者指南