Skip to content

Instantly share code, notes, and snippets.

@Kikobeats
Created December 23, 2017 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kikobeats/a42114f0bc329462d594428f33360e85 to your computer and use it in GitHub Desktop.
Save Kikobeats/a42114f0bc329462d594428f33360e85 to your computer and use it in GitHub Desktop.
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