[GH-ISSUE #2000] [Bug]: koel:init fails at "Installing npm dependencies" #1055

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

Originally created by @Anduin2017 on GitHub (Jul 4, 2025).
Original GitHub issue: https://github.com/koel/koel/issues/2000

Read the Troubleshooting guide.

  • I have read and followed the Troubleshooting guide

Reproduction steps

  1. Follow the installation instructions.
  2. Run php ./artisan koel:init
  3. See error

Expected behavior

The koel:init command should complete successfully.

Actual behavior

The koel:init command fails at the "Installing npm dependencies" step.

Logs

Console Output

root@7764a1cfd318:/var/www/html# php ./artisan koel:init


                                                                                                                                                                                                                                                  
                                                                                                            KOEL INSTALLATION WIZARD.                                                                                                             
                                                                                                                                                                                                                                                  

   INFO  Remember, you can always install/upgrade manually using the guide at https://docs.koel.dev.  

  Clearing caches ...................................................................................................................... 1.92ms DONE
  .env file exists -- skipping ................................................................................................................ DONE
  Retrieving app key ................................................................................................................... 0.00ms DONE
  Using app key: base64:BZBiWJjpz.. ........................................................................................................... DONE
  Migrating database ................................................................................................................... 2.08ms DONE
  Data already seeded -- skipping ............................................................................................................. DONE
  Installing npm dependencies .......................................................................................................... 1.86ms FAIL

   ERROR  Oops! Koel installation or upgrade didn't finish successfully.  

   ERROR  Please check the error log at storage/logs/laravel.log and try again.  

   ERROR  For further troubleshooting, visit https://docs.koel.dev/troubleshooting.  

   ERROR  😥 Sorry for this. You deserve better.  

Log Output (storage/logs/laravel.log)

[2025-07-04 06:20:22] production.ERROR: App\Exceptions\InstallationFailedException in /var/www/html/vendor/laravel/framework/src/Illuminate/Support/helpers.php:423
Stack trace:
#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/helpers.php(449): throw_if()
#1 /var/www/html/app/Console/Commands/InitCommand.php(320): throw_unless()
#2 /var/www/html/app/Console/Commands/InitCommand.php(306): App\Console\Commands\InitCommand->runOkOrThrow()
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/View/Components/Task.php(40): App\Console\Commands\InitCommand->{closure:App\Console\Commands\InitCommand::maybeCompileFrontEndAssets():305}()
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/View/Components/Factory.php(60): Illuminate\Console\View\Components\Task->render()
#5 /var/www/html/app/Console/Commands/InitCommand.php(305): Illuminate\Console\View\Components\Factory->__call()
#6 /var/www/html/app/Console/Commands/InitCommand.php(59): App\Console\Commands\InitCommand->maybeCompileFrontEndAssets()
#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Console\Commands\InitCommand->handle()
#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\Container\BoundMethod::{closure:Illuminate\Container\BoundMethod::call():35}()
#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(95): Illuminate\Container\Util::unwrapIfClosure()
#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod()
#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(696): Illuminate\Container\BoundMethod::call()
#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(213): Illuminate\Container\Container->call()
Originally created by @Anduin2017 on GitHub (Jul 4, 2025). Original GitHub issue: https://github.com/koel/koel/issues/2000 ### Read the Troubleshooting guide. - [X] I have read and followed the Troubleshooting guide ### Reproduction steps 1. Follow the installation instructions. 2. Run `php ./artisan koel:init` 3. See error ### Expected behavior The `koel:init` command should complete successfully. ### Actual behavior The `koel:init` command fails at the "Installing npm dependencies" step. ### Logs **Console Output** ``` root@7764a1cfd318:/var/www/html# php ./artisan koel:init KOEL INSTALLATION WIZARD. INFO Remember, you can always install/upgrade manually using the guide at https://docs.koel.dev. Clearing caches ...................................................................................................................... 1.92ms DONE .env file exists -- skipping ................................................................................................................ DONE Retrieving app key ................................................................................................................... 0.00ms DONE Using app key: base64:BZBiWJjpz.. ........................................................................................................... DONE Migrating database ................................................................................................................... 2.08ms DONE Data already seeded -- skipping ............................................................................................................. DONE Installing npm dependencies .......................................................................................................... 1.86ms FAIL ERROR Oops! Koel installation or upgrade didn't finish successfully. ERROR Please check the error log at storage/logs/laravel.log and try again. ERROR For further troubleshooting, visit https://docs.koel.dev/troubleshooting. ERROR 😥 Sorry for this. You deserve better. ``` **Log Output (`storage/logs/laravel.log`)** ``` [2025-07-04 06:20:22] production.ERROR: App\Exceptions\InstallationFailedException in /var/www/html/vendor/laravel/framework/src/Illuminate/Support/helpers.php:423 Stack trace: #0 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/helpers.php(449): throw_if() #1 /var/www/html/app/Console/Commands/InitCommand.php(320): throw_unless() #2 /var/www/html/app/Console/Commands/InitCommand.php(306): App\Console\Commands\InitCommand->runOkOrThrow() #3 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/View/Components/Task.php(40): App\Console\Commands\InitCommand->{closure:App\Console\Commands\InitCommand::maybeCompileFrontEndAssets():305}() #4 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/View/Components/Factory.php(60): Illuminate\Console\View\Components\Task->render() #5 /var/www/html/app/Console/Commands/InitCommand.php(305): Illuminate\Console\View\Components\Factory->__call() #6 /var/www/html/app/Console/Commands/InitCommand.php(59): App\Console\Commands\InitCommand->maybeCompileFrontEndAssets() #7 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Console\Commands\InitCommand->handle() #8 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\Container\BoundMethod::{closure:Illuminate\Container\BoundMethod::call():35}() #9 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(95): Illuminate\Container\Util::unwrapIfClosure() #10 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod() #11 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(696): Illuminate\Container\BoundMethod::call() #12 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(213): Illuminate\Container\Container->call()
kerem closed this issue 2026-02-26 02:35:06 +03:00
Author
Owner

@Anduin2017 commented on GitHub (Jul 4, 2025):

Mitigated via adding param: --no-assets

<!-- gh-comment-id:3034684458 --> @Anduin2017 commented on GitHub (Jul 4, 2025): Mitigated via adding param: `--no-assets`
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#1055
No description provided.