Update nodejs

This commit is contained in:
ericgaspar 2020-05-31 18:02:29 +02:00
parent ada94aec18
commit faedbc534f

View file

@ -125,7 +125,7 @@ ynh_install_nodejs () {
test -x /usr/bin/npm && mv /usr/bin/npm /usr/bin/npm_n test -x /usr/bin/npm && mv /usr/bin/npm /usr/bin/npm_n
# If n is not previously setup, install it # If n is not previously setup, install it
if ! type n > /dev/null 2>&1 if ! type $(n --version > /dev/null 2>&1)
then then
ynh_install_n ynh_install_n
elif dpkg --compare-version "$($n_install_dir/bin/n --version | cut -d" " -f2)" lt "6.5.1" elif dpkg --compare-version "$($n_install_dir/bin/n --version | cut -d" " -f2)" lt "6.5.1"