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 <