From 8ac55a346e473b32eb450a2fa788867eab09b1b1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 4 Jun 2017 18:50:20 +0100 Subject: [PATCH] Set nodejs version --- src/freedombone-utils-nodejs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/freedombone-utils-nodejs b/src/freedombone-utils-nodejs index ad99739c..f0c0f16d 100755 --- a/src/freedombone-utils-nodejs +++ b/src/freedombone-utils-nodejs @@ -59,10 +59,11 @@ function mesh_install_nodejs { #!/bin/bash npm install -g npm@${NPM_VERSION} --save npm install -g n@${NODEJS_N_VERSION} --save +n ${NODEJS_VERSION} npm install -g pug@2.0.0-beta6 --save npm install -g graceful-fs@4.1.10 --save npm install -g minimatch@3.0.3 --save -cp /usr/bin/nodejs /usr/local/bin/node +cp /usr/local/bin/node /usr/bin/nodejs EOF chroot "${rootdir}" chmod +x /root/install-nodejs.sh chroot "${rootdir}" /root/install-nodejs.sh @@ -173,11 +174,12 @@ function install_nodejs { npm install -g npm@${NPM_VERSION} --save npm install -g n@${NODEJS_N_VERSION} --save + n ${NODEJS_VERSION} npm install -g pug@2.0.0-beta6 --save npm install -g graceful-fs@4.1.10 --save npm install -g minimatch@3.0.3 --save - cp /usr/bin/nodejs /usr/local/bin/node + cp /usr/local/bin/node /usr/bin/nodejs # node seems tricky so here we're going to double check # that the versions we expect did get installed