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

@ -41,7 +41,7 @@ function build_chroot()
# Don't ask me why, but stupid nodejs wants to look for stuff inside /lib instead of /usr/lib ... # 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 ... # This only happens when building those chroot ... I don't know why ...
chroot $CHROOT ln -s /usr/lib/nodejs /lib/nodejs chroot $CHROOT ln -s /usr/lib/nodejs /lib/nodejs
chroot $CHROOT npm install -g npm chroot $CHROOT npm install -g npm@latest
fi fi
chroot $CHROOT apt clean chroot $CHROOT apt clean