Skip to content
Browse files

added node.js support

  • Loading branch information...
1 parent ee535ea commit c8e38517898b8a31a0f48c4d1f852750a2c5ebf8 @devdazed committed Mar 24, 2011
Showing with 21 additions and 0 deletions.
  1. +1 −0 node/README
  2. +1 −0 node/VERSION
  3. 0 node/bin/help
  4. +19 −0 node/bin/install
View
1 node/README
@@ -0,0 +1 @@
+Node.JS BDSM Extension
View
1 node/VERSION
@@ -0,0 +1 @@
+0.0.1
View
0 node/bin/help
No changes.
View
19 node/bin/install
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+
+#installs the latest version of nvm, node.js and npm
+if [[ "root" = "$(whoami)" ]] ; then
+ source_path="/usr/local/src"
+else
+ source_path="$HOME/.nvm"
+fi
+
+mkdir -p $source_path
+curl -Ls https://github.com/creationix/nvm/raw/master/nvm.sh > $source_path/nvm.sh
+chmod +x $source_path/nvm.sh
+
+. $source_path/nvm.sh
+
+echo ". $source_path/nvm.sh" > ~/.bashrc
+
+nvm install latest
+nvm alias default latest

0 comments on commit c8e3851

Please sign in to comment.
Something went wrong with that request. Please try again.