Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
up + micro + node8
#!/bin/bash
NODE_BIN=`curl -sL https://semver.io/node/resolve/8`-linux-x64
echo "Downloading $NODE_BIN binary file"
curl -sL https://nodejs.org/dist/latest-v8.x/node-v$NODE_BIN.tar.gz | tar -xz
mkdir -p bin
mv node-v$NODE_BIN/bin/node bin/node
rm -rf node-v$NODE_BIN
echo "Added \`bin/node\` as node-v$NODE_BIN"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment