Skip to content

Commit

Permalink
Not altering system Nodejs version
Browse files Browse the repository at this point in the history
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
  • Loading branch information
quinkennedy committed Nov 13, 2015
1 parent 77cf107 commit 03540c7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
13 changes: 13 additions & 0 deletions launch.sh
Original file line number Diff line number Diff line change
@@ -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 "$@"
3 changes: 0 additions & 3 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 03540c7

Please sign in to comment.