From 86d5e5d696b35ca0284797dd66033a7ac3dac1fc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 4 Jun 2017 12:46:32 +0100 Subject: [PATCH] An actually working nodejs debian package Needs the jessie repo --- src/freedombone-utils-nodejs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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'