mirror of
https://github.com/koel/koel.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #737] Yarn errors - missing dependencies #526
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#526
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gareththered on GitHub (Apr 9, 2018).
Original GitHub issue: https://github.com/koel/koel/issues/737
composer_install_output.txt
I'm attempting to install Koel. I've followed your wiki instructions and failed miserably. I should add that Koel works within Docker (0xcaff's), but I'm not interested in running it from Docker permanently.
I dissected 0xcaff's Dockerfile to see if I could work out where I've gone wrong - I couldn't.
I'm attempting to install Koel v3.7.2 on a Debian 9 VM. The following are the steps I've taken:
~# apt install curl gnupg2 apt-transport-httpsInstall a newer
nodejsandyarn:~# curl --silent https://deb.nodesource.com/gpgkey/nodesource.gpg.key| apt-key add -~# echo "deb https://deb.nodesource.com/node_8.x stretch main" | tee /etc/apt/sources.list.d/nodesource.list~# echo "deb-src https://deb.nodesource.com/node_8.x stretch main" | tee --append /etc/apt/sources.list.d/nodesource.list~# curl --silent --show-error https://dl.yarnpkg.com/debian/pubkey.gpg| apt-key add -~# echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.listInstall them along with
git:~# apt update && apt install nodejs yarn gitInstall more dependencies. This deviates from the Docker steps in that I used
aptwhereas it useddocker-php-ext-install. These aren't listed in the wiki neither, but if I skip these, thecomposerinstall fails latercomposer_install_output.txt
:
~# apt install libxml2-dev zlib1g-dev libcurl4-openssl-dev php7.0-zip php7.0-mbstring php7.0-curl php7.0-curl php7.0-xmlInstall newer composer:
~# curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --version=1.1.2~# chmod +x /usr/local/bin/composerDownload Koel:
~# cd /usr/shareshare# git clone https://github.com/phanan/koel.gitshare# chown -R www-data: koelshare# cd koelChange user:
koel# sudo -u www-data bashInstall composer:
koel$ /usr/local/bin/composer install(I've attached the output to save posting an excessively long issue - there were no errors AFAIK)
Unsuccessfully attempt to install yarn:
koel$ yarn installIf I follow the advice in the error message:
koel$ npm install --save /usr/share/koel/resources/assets/js/app.js /usr/share/koel/resources/assets/js/remote/app.js /usr/share/koel/resources/assets/sass/app.scss /usr/share/koel/resources/assets/sass/remote.scssI get:
which isn't surprising as
ls resource/assetsshows an empty directory.Having never used nodejs or yarn before, I'm at a loss as to how to resolve this. As the missing files are withing the
koeldirectory, I guessed that raising an issue here would be a good place to start.@Diagamma commented on GitHub (Apr 14, 2018):
I had the same problem, apparently in the master branch assets are in a separate repo.
Cloning the repo recursively (
git clone https://github.com/phanan/koel.git --recursive) should fix it.@gareththered commented on GitHub (Apr 14, 2018):
@Diagamma - you're a genius. It works perfectly with that addition.
@phanan commented on GitHub (Apr 14, 2018):
But you specified that you were "attempting to install Koel v3.7.2 on a Debian 9 VM," and not
master. Please keep in mind thatmasterbranch is unstable.@chery5211 commented on GitHub (Sep 20, 2019):
@Diagamma handsome. thank you