[GH-ISSUE #1819] [Bug]: Error running composer install on Windows #1008

Closed
opened 2026-02-26 02:34:55 +03:00 by kerem · 1 comment
Owner

Originally created by @raelb on GitHub (Sep 3, 2024).
Original GitHub issue: https://github.com/koel/koel/issues/1819

Originally assigned to: @phanan on GitHub.

Read the Troubleshooting guide.

  • I have read and followed the Troubleshooting guide

Reproduction steps

I am trying to run koel on Windows.
koel is in this folder: C:\Tutorials\Php\koel

I have for the meantime renamed composer.lock to composer_.lock
When I run composer install I get the below error.

Expected behavior

No error

Actual behavior

I get this error:

composer install
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
> @php artisan clear-compiled

Warning: require(C:\Tutorials\Php\koel\bootstrap/../vendor/autoload.php): Failed to open stream: No such file or directory in C:\Tutorials\Php\koel\bootstrap\autoload.php on line 15

Fatal error: Uncaught Error: Failed opening required 'C:\Tutorials\Php\koel\bootstrap/../vendor/autoload.php' (include_path='\xampp\php\PEAR') in C:\Tutorials\Php\koel\bootstrap\autoload.php:15
Stack trace:
#0 C:\Tutorials\Php\koel\artisan(16): require()
#1 {main}
  thrown in C:\Tutorials\Php\koel\bootstrap\autoload.php on line 15
PHP Warning:  require(C:\Tutorials\Php\koel\bootstrap/../vendor/autoload.php): Failed to open stream: No such file or directory in C:\Tutorials\Php\koel\bootstrap\autoload.php on line 15
PHP Fatal error:  Uncaught Error: Failed opening required 'C:\Tutorials\Php\koel\bootstrap/../vendor/autoload.php' (include_path='\xampp\php\PEAR') in C:\Tutorials\Php\koel\bootstrap\autoload.php:15
Stack trace:
#0 C:\Tutorials\Php\koel\artisan(16): require()
#1 {main}
  thrown in C:\Tutorials\Php\koel\bootstrap\autoload.php on line 15
Script @php artisan clear-compiled handling the pre-update-cmd event returned with error code 255

Logs

No response

Koel version

7.0.12

How did you install Koel?

Compiled from source

Additional information

  • Server OS: Windows 10 x64

  • PHP version: 8.2.12

  • Database:

  • Node version: 22.4.1

  • Browser & device:

  • Additional context:

  • Composer version 2.7.6 2024-05-04 23:03:15

Originally created by @raelb on GitHub (Sep 3, 2024). Original GitHub issue: https://github.com/koel/koel/issues/1819 Originally assigned to: @phanan on GitHub. ### Read the Troubleshooting guide. - [X] I have read and followed the Troubleshooting guide ### Reproduction steps I am trying to run koel on Windows. koel is in this folder: `C:\Tutorials\Php\koel` I have for the meantime renamed composer.lock to composer_.lock When I run `composer install` I get the below error. ### Expected behavior No error ### Actual behavior I get this error: ``` composer install No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information. > @php artisan clear-compiled Warning: require(C:\Tutorials\Php\koel\bootstrap/../vendor/autoload.php): Failed to open stream: No such file or directory in C:\Tutorials\Php\koel\bootstrap\autoload.php on line 15 Fatal error: Uncaught Error: Failed opening required 'C:\Tutorials\Php\koel\bootstrap/../vendor/autoload.php' (include_path='\xampp\php\PEAR') in C:\Tutorials\Php\koel\bootstrap\autoload.php:15 Stack trace: #0 C:\Tutorials\Php\koel\artisan(16): require() #1 {main} thrown in C:\Tutorials\Php\koel\bootstrap\autoload.php on line 15 PHP Warning: require(C:\Tutorials\Php\koel\bootstrap/../vendor/autoload.php): Failed to open stream: No such file or directory in C:\Tutorials\Php\koel\bootstrap\autoload.php on line 15 PHP Fatal error: Uncaught Error: Failed opening required 'C:\Tutorials\Php\koel\bootstrap/../vendor/autoload.php' (include_path='\xampp\php\PEAR') in C:\Tutorials\Php\koel\bootstrap\autoload.php:15 Stack trace: #0 C:\Tutorials\Php\koel\artisan(16): require() #1 {main} thrown in C:\Tutorials\Php\koel\bootstrap\autoload.php on line 15 Script @php artisan clear-compiled handling the pre-update-cmd event returned with error code 255 ``` ### Logs _No response_ ### Koel version 7.0.12 ### How did you install Koel? Compiled from source ### Additional information - **Server OS**: Windows 10 x64 - **PHP version**: 8.2.12 - **Database**: - **Node version**: 22.4.1 - **Browser & device**: - **Additional context**: - Composer version 2.7.6 2024-05-04 23:03:15
kerem closed this issue 2026-02-26 02:34:55 +03:00
Author
Owner

@phanan commented on GitHub (Sep 3, 2024):

I don't think this has anything to do with Koel, but your system.

<!-- gh-comment-id:2326736292 --> @phanan commented on GitHub (Sep 3, 2024): I don't think this has anything to do with Koel, but your system.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#1008
No description provided.