Permalink
Browse files

Added instructions for the install script

  • Loading branch information...
1 parent 7bee39f commit b063b326424003ee30d7a00a287029410e083ddd @koenpunt koenpunt committed Dec 4, 2012
Showing with 17 additions and 3 deletions.
  1. +17 −3 README.markdown
View
@@ -4,7 +4,22 @@
First you'll need to make sure your system has a c++ compiler. For OSX, XCode will work, for Ubuntu, the build-essential and libssl-dev packages work.
-To install create a folder somewhere in your filesystem with the "`nvm.sh`" file inside it. I put mine in a folder called "`nvm`".
+### Install script
+
+To install you could use the [install script](https://github.com/creationix/nvm/blob/master/install.sh) (requires Git) using cURL:
+
+ curl https://raw.github.com/creationix/nvm/master/install.sh | sh
+
+or Wget:
+
+ wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh
+
+<sub>The script clones the Nvm repository to `~/.nvm` and adds the source line to your profile (`~/.bash_profile` or `~/.profile`).</sub>
+
+
+### Manual install
+
+For manual install create a folder somewhere in your filesystem with the `nvm.sh` file inside it. I put mine in a folder called `nvm`.
Or if you have `git` installed, then just clone it:
@@ -14,7 +29,7 @@ To activate nvm, you need to source it from your bash shell
. ~/nvm/nvm.sh
-I always add this line to my ~/.bashrc or ~/.profile file to have it automatically sources upon login.
+I always add this line to my `~/.bashrc` or `~/.profile` file to have it automatically sources upon login.
Often I also put in a line to use a specific version of node.
## Usage
@@ -23,7 +38,6 @@ To download, compile, and install the v0.6.14 release of node, do this:
nvm install 0.6.14
-
And then in any new shell just use the installed version:
nvm use 0.6.14

0 comments on commit b063b32

Please sign in to comment.