Skip to content

Commit 03540c7

Browse files
committed
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
1 parent 77cf107 commit 03540c7

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

launch.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
# get this script's directory
4+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5+
6+
cd $DIR
7+
# for some reason, even if `nvm` worked in the console
8+
# this script would error with `nvm command not found`
9+
source $NVM_DIR/nvm.sh
10+
# activate appropriate Nodejs version
11+
nvm use 5.0.0
12+
# launch openframe!
13+
node frame.js "$@"

scripts/install.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | sh
1515
source ~/.nvm/nvm.sh
1616
# install latest tested stable Nodejs
1717
nvm install 5.0.0
18-
# set 5.0.0 as default system Nodejs version
19-
# this means 5.0.0 will be in the $PATH when you boot
20-
nvm alias default 5.0.0
2118

2219
# install chromium from package repository
2320
sudo apt-get update

0 commit comments

Comments
 (0)