Try different nodejs versions
This commit is contained in:
parent
46e6e13792
commit
81a75baac2
|
@ -45,8 +45,8 @@ NODEJS_INSTALLED_APPS_FILE=$HOME/.nodejs-apps
|
||||||
|
|
||||||
function mesh_install_nodejs {
|
function mesh_install_nodejs {
|
||||||
# Note: this has to be jessie for now
|
# Note: this has to be jessie for now
|
||||||
echo "deb https://deb.nodesource.com/node_6.x jessie main" > ${rootdir}/etc/apt/sources.list.d/nodesource.list
|
echo "deb https://deb.nodesource.com/node_7.x jessie main" > ${rootdir}/etc/apt/sources.list.d/nodesource.list
|
||||||
echo "deb-src https://deb.nodesource.com/node_6.x jessie main" >> ${rootdir}/etc/apt/sources.list.d/nodesource.list
|
echo "deb-src https://deb.nodesource.com/node_7.x jessie main" >> ${rootdir}/etc/apt/sources.list.d/nodesource.list
|
||||||
chroot "${rootdir}" apt-get update
|
chroot "${rootdir}" apt-get update
|
||||||
chroot "${rootdir}" apt-get -yq install nodejs curl
|
chroot "${rootdir}" apt-get -yq install nodejs curl
|
||||||
|
|
||||||
|
@ -146,8 +146,8 @@ function install_nodejs {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Note: this has to be jessie for now
|
# Note: this has to be jessie for now
|
||||||
echo "deb https://deb.nodesource.com/node_6.x jessie main" > /etc/apt/sources.list.d/nodesource.list
|
echo "deb https://deb.nodesource.com/node_7.x jessie main" > /etc/apt/sources.list.d/nodesource.list
|
||||||
echo "deb-src https://deb.nodesource.com/node_6.x jessie main" >> /etc/apt/sources.list.d/nodesource.list
|
echo "deb-src https://deb.nodesource.com/node_7.x jessie main" >> /etc/apt/sources.list.d/nodesource.list
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue