From b063b326424003ee30d7a00a287029410e083ddd Mon Sep 17 00:00:00 2001 From: Koen Punt Date: Tue, 4 Dec 2012 23:21:00 +0100 Subject: [PATCH] Added instructions for the install script --- README.markdown | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/README.markdown b/README.markdown index 44474fd..7d6be52 100644 --- a/README.markdown +++ b/README.markdown @@ -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 + +The script clones the Nvm repository to `~/.nvm` and adds the source line to your profile (`~/.bash_profile` or `~/.profile`). + + +### 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