Support the ongoing development of Laravel.io →
Authentication

Hello there, I'm new on this forum but I'm optimistic my problems will be solved. I installed Laravel 11.10.0 on Windows 11 and also a PHP v8.2.12. Each time I tried the "composer require laravel/jetstream" command, I get an error in the form of "In RequireCommand.php line 155:", followed by the warning: file_put_contents(C:\ProgramData\ComposerSetup\bin): Failed to open stream: Permission denied. There is also a bunch of text in green: require [--dev] [--dry-run] [--prefer-source] ... [<packages>...]. I am stuck. Please help. Thanks.

0

Try

  1. composer install
  2. composer clear-cache
  3. composer require laravel/jetstream
0
moderator

To be honest it sounds like a permission error.

Do you have write permissions on the paths that are part of the error for file_put_contents?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.