From 0ac91a9f9427372794e2e12c48c278378aa87174 Mon Sep 17 00:00:00 2001 From: Michael Klement Date: Mon, 20 Jul 2015 09:43:48 -0400 Subject: [PATCH] Added installation option via third-party installer n-install as discussed in [#286](https://github.com/tj/n/issues/286#issuecomment-122860542). Also streamlined description of the manual installation process. --- Readme.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Readme.md b/Readme.md index fd9c81d..6749053 100644 --- a/Readme.md +++ b/Readme.md @@ -11,16 +11,22 @@ Simple flavour of node/iojs binary management, no subshells, no profile setup, n ## Installation +With node/iojs already installed: + $ npm install -g n -or - - $ make install - -to `$HOME`. Prefix later calls to `n` with `N_PREFIX=$HOME` +or, by cloning this repo and running: $ PREFIX=$HOME make install +to install to `$HOME`. Prefix later calls to `n` with `N_PREFIX=$HOME` or export `N_PREFIX` in your shell initialization file. + +Alternatively, consider third-party installer [n-install](https://github.com/mklement0/n-install), which allows installation directly from GitHub; for instance, + + curl -L http://git.io/n-install | bash + +installs the latest `n` to `$HOME/n`, modifies the initialization files of supported shells to export `N_PREFIX`, and installs the latest stable node version. + ### Installing Binaries Install a few nodes: