[GH-ISSUE #336] install does not abort when there is no npm #246

Closed
opened 2026-02-26 02:32:34 +03:00 by kerem · 4 comments
Owner

Originally created by @My1 on GitHub (May 22, 2016).
Original GitHub issue: https://github.com/koel/koel/issues/336

I am trying to get koel ready on my raspberry pi and found something intresting.
I didnt have npm yet on it and I got this in the shell:

my1@my1-pi:~/koel $ php artisan koel:init
Attempting to install or upgrade Koel.
Remember, you can always install/upgrade manually following the guide here:
📙  https://github.com/phanan/koel/wiki

App key exists -- skipping
JWT secret exists -- skipping
Migrating database
Seeding initial data
Executing npm install, gulp and whatnot
sh: 1: npm: not found

🎆  Success! You can now run Koel from localhost with `php artisan serve`.
Again, for more configuration guidance, refer to
📙  https://github.com/phanan/koel/wiki.
WIKI ROCKS WIKI RULES.
KTHXBYE.

the intresting part is that if npm is needed then usually it would have to abort, but well... it didnt.

Originally created by @My1 on GitHub (May 22, 2016). Original GitHub issue: https://github.com/koel/koel/issues/336 I am trying to get koel ready on my raspberry pi and found something intresting. I didnt have npm yet on it and I got this in the shell: ``` my1@my1-pi:~/koel $ php artisan koel:init Attempting to install or upgrade Koel. Remember, you can always install/upgrade manually following the guide here: 📙 https://github.com/phanan/koel/wiki App key exists -- skipping JWT secret exists -- skipping Migrating database Seeding initial data Executing npm install, gulp and whatnot sh: 1: npm: not found 🎆 Success! You can now run Koel from localhost with `php artisan serve`. Again, for more configuration guidance, refer to 📙 https://github.com/phanan/koel/wiki. WIKI ROCKS WIKI RULES. KTHXBYE. ``` the intresting part is that if npm is needed then usually it would have to abort, but well... it didnt.
kerem closed this issue 2026-02-26 02:32:34 +03:00
Author
Owner

@phanan commented on GitHub (May 23, 2016):

npm is required obviously. From wiki:

Since Koel is written in Vue and Laravel, it is assumed that your server has npm and composer installed.

Yes, in an ideal world, Koel should check for each and every prerequisite. Our world is far from ideal, though ;)

<!-- gh-comment-id:220930163 --> @phanan commented on GitHub (May 23, 2016): npm is required obviously. From wiki: > Since Koel is written in Vue and Laravel, it is assumed that your server has `npm` and `composer` installed. Yes, in an ideal world, Koel should check for each and every prerequisite. Our world is far from ideal, though ;)
Author
Owner

@My1 commented on GitHub (May 23, 2016):

"Since Koel is written in Vue and Laravel" well before seeing koel I never even have heard of one of those 2.

also when setting up a new system you might just have forgotten it.

by the way, is it normal that the init takes half an eternity (at least a night and it still hasnt been over when I woke up) or is a raspi 1b just too weak?
it would be nice to have hardware requirements somewhere.

<!-- gh-comment-id:220931184 --> @My1 commented on GitHub (May 23, 2016): "Since Koel is written in Vue and Laravel" well before seeing koel I never even have heard of one of those 2. also when setting up a new system you might just have forgotten it. by the way, is it normal that the init takes half an eternity (at least a night and it still hasnt been over when I woke up) or is a raspi 1b just too weak? it would be nice to have hardware requirements somewhere.
Author
Owner

@phanan commented on GitHub (May 23, 2016):

Please see the wiki: https://github.com/phanan/koel/wiki.

by the way, is it normal that the init takes half an eternity (at least a night and it still isnt over) or is a raspi 1b just too weak?

Something must have gone wrong then. init doesn't do anything time-consuming.

<!-- gh-comment-id:220931728 --> @phanan commented on GitHub (May 23, 2016): Please see the wiki: https://github.com/phanan/koel/wiki. > by the way, is it normal that the init takes half an eternity (at least a night and it still isnt over) or is a raspi 1b just too weak? Something must have gone wrong then. `init` doesn't do anything time-consuming.
Author
Owner

@My1 commented on GitHub (May 23, 2016):

the wiki doesnt say anything specific about heardware requirements. just "a capable web server" but well what is "capable"?

well most of the time it's busy with the npm phase.

I had to dl node and npm manually form ARM6 because the repo had for my system (raspbian [=debian] jessie iirc) somehow a really old one.

<!-- gh-comment-id:220935402 --> @My1 commented on GitHub (May 23, 2016): the wiki doesnt say anything specific about heardware requirements. just "a capable web server" but well what is "capable"? well most of the time it's busy with the npm phase. I had to dl node and npm manually form ARM6 because the repo had for my system (raspbian [=debian] jessie iirc) somehow a really old one.
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#246
No description provided.