make-chroots: install npm@latest

This commit is contained in:
Kay0u 2021-01-27 20:00:03 +01:00
parent 8996c34656
commit 4f2309a1c2
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -38,10 +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
# 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@latest
fi
chroot $CHROOT apt clean