From 03540c70f532fce9e4fb72a08720afa0fb6bb9a9 Mon Sep 17 00:00:00 2001 From: Quin Kennedy Date: Fri, 13 Nov 2015 18:57:06 +0000 Subject: [PATCH] Not altering system Nodejs version A launch script was added to ensure that the correct version of Nodejs is used The install script no longer sets up a default system Nodejs version --- launch.sh | 13 +++++++++++++ scripts/install.sh | 3 --- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100755 launch.sh diff --git a/launch.sh b/launch.sh new file mode 100755 index 0000000..e54756d --- /dev/null +++ b/launch.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# get this script's directory +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +cd $DIR +# for some reason, even if `nvm` worked in the console +# this script would error with `nvm command not found` +source $NVM_DIR/nvm.sh +# activate appropriate Nodejs version +nvm use 5.0.0 +# launch openframe! +node frame.js "$@" diff --git a/scripts/install.sh b/scripts/install.sh index 47122a2..cf075fd 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -15,9 +15,6 @@ curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | sh source ~/.nvm/nvm.sh # install latest tested stable Nodejs nvm install 5.0.0 -# set 5.0.0 as default system Nodejs version -# this means 5.0.0 will be in the $PATH when you boot -nvm alias default 5.0.0 # install chromium from package repository sudo apt-get update