Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active November 6, 2015 08:25
Show Gist options
  • Save wilmoore/f4e45f66e2c1f3a30ca6 to your computer and use it in GitHub Desktop.
Save wilmoore/f4e45f66e2c1f3a30ca6 to your computer and use it in GitHub Desktop.
Installs pre-compiled NodeJS binaries while avoiding sudo or chown
class NodejsInstall < Formula
desc "Installs pre-compiled NodeJS binaries while avoiding sudo or chown"
homepage "https://github.com/wilmoore/nodejs-install"
url "https://github.com/wilmoore/nodejs-install/archive/1.0.0.tar.gz"
sha256 "5ce90a3398884d55a891e0e1a889ee46a8aa41e48cd700b4a9b34c6c74de78ef"
head "https://github.com/wilmoore/nodejs-install.git"
def install
prefix.install "bin"
end
test do
system bin/"nodejs-install", "--version"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment