From 22ef52fe9c29b774b9a057e8236601b99493c388 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 31 Aug 2020 14:24:03 +0000 Subject: [PATCH] Stupid fix for npm --- chroots/make-chroots | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chroots/make-chroots b/chroots/make-chroots index 2d4260f..540f038 100755 --- a/chroots/make-chroots +++ b/chroots/make-chroots @@ -38,6 +38,10 @@ function build_chroot() then # This is for building yunohost-admin chroot $CHROOT apt install -y npm nodejs + # Don't ask me why, but stupid nodejs wants to look for stuff inside /lib instead of /usr/lib ... + # This only happens when building those chroot ... I don't know why ... + chroot $CHROOT ln -s /usr/lib/nodejs /lib/nodejs + chroot $CHROOT npm install -g npm fi chroot $CHROOT apt clean