Created
August 30, 2012 21:28
-
-
Save thomasfr/3541551 to your computer and use it in GitHub Desktop.
One liner to get latest stable version of node.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --insecure -# -sSL http://nodejs.org/dist/ | sed -n -E "s/.*([0-9]+\.[0-9]+\.[0-9]+).*/\1/gp" | sort -u -k 1,1n -k 2,2n -k 3,3n -t . | tail -n1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For 2024:
And you can pick the version of Node.js by setting the
NODE_VERSION
variable(I'm not good at sed/regex so it does multiple passes, feel free to simplify this)