From 9d79e76b992a1140c9f2d006a3906024b34b0066 Mon Sep 17 00:00:00 2001 From: Guillaume Giamarchi Date: Wed, 14 Sep 2016 15:55:00 +0200 Subject: [PATCH] Update NodeJS to the current LTS version We were on a deprecated release --- Vagrantfile | 9 +++++---- serial/package.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 47fb92a..5e0de96 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -37,7 +37,7 @@ sudo openssl x509 -req -days 365 -in ${cert}.csr -signkey ${cert}.key -out ${cer ### Install tools ################################################################## -sudo apt-get install -y --force-yes git tcpdump bridge-utils jq curl +sudo apt-get install -y --force-yes git tcpdump bridge-utils jq curl build-essential ################################################################## @@ -143,8 +143,9 @@ sed -i "s/profile: production/profile: development/" conf.yaml ### Install NodeJS (for RuggedPOD serial web console) ################################################################## -curl -sSL https://deb.nodesource.com/setup | sudo bash - -sudo apt-get install -y git nodejs build-essential +curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - +sudo apt-get install -y nodejs + sudo npm install -g bower sudo npm install -g grunt-cli @@ -165,7 +166,7 @@ bower install cd /vagrant/serial sudo chown -R vagrant: /home/vagrant/.npm sudo rm -rf node_modules -npm install --no-bin-links +npm install sed -i "s/screen-safe/screen-mock/" config.json diff --git a/serial/package.json b/serial/package.json index 78d38c6..fcefeb3 100644 --- a/serial/package.json +++ b/serial/package.json @@ -5,7 +5,7 @@ "dependencies": { "express": "4.12.2", "log4js": "0.6.22", - "pty.js": "0.2.5", + "pty.js": "0.3.1", "socket.io": "1.3.5", "term.js": "0.0.4", "underscore": "1.8.2"