diff --git a/src/freedombone-utils-nodejs b/src/freedombone-utils-nodejs index b780869b..198713f7 100755 --- a/src/freedombone-utils-nodejs +++ b/src/freedombone-utils-nodejs @@ -44,6 +44,10 @@ NPM_VERSION='4.0.5' NODEJS_INSTALLED_APPS_FILE=$HOME/.nodejs-apps function mesh_install_nodejs { + # 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-src https://deb.nodesource.com/node_6.x jessie main" >> ${rootdir}/etc/apt/sources.list.d/nodesource.list + chroot "${rootdir}" apt-get update chroot "${rootdir}" apt-get -yq install nodejs curl if [ ! -f ${rootdir}/usr/bin/nodejs ]; then @@ -136,8 +140,12 @@ function install_nodejs { return fi - apt-get -yq install nodejs - apt-get -yq install npm curl + # 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-src https://deb.nodesource.com/node_6.x jessie main" >> /etc/apt/sources.list.d/nodesource.list + + apt-get update + apt-get -yq install nodejs curl if [ ! -f /usr/bin/nodejs ]; then echo $'nodejs was not installed'