From 9711385963a81f91eabeb2882bf80f802b8f36dc Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Sat, 4 Aug 2018 12:36:58 +0100 Subject: [PATCH] Install node binaries from (shell script) --- provision/install_node.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 provision/install_node.sh diff --git a/provision/install_node.sh b/provision/install_node.sh new file mode 100644 index 00000000..ff0870de --- /dev/null +++ b/provision/install_node.sh @@ -0,0 +1,17 @@ +set -x + +# node +NODE_VERSION=v8.11.3 +DISTRO=linux-x64 +wget -nc https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-$DISTRO.tar.xz +sudo mkdir /usr/local/lib/node +sudo tar xf node-v8.11.3-linux-x64.tar.xz -C /usr/local/lib/node +sudo mv /usr/local/lib/node/node-$NODE_VERSION-$DISTRO /usr/local/lib/node/node-$NODE_VERSION +rm node-$NODE_VERSION-$DISTRO.tar.xz + +cat >> ~/.profile <