0
0
mirror of https://github.com/tj/n.git synced 2024-11-21 18:48:57 +01:00

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.
This commit is contained in:
Michael Klement 2015-07-20 09:43:48 -04:00
parent 2a400cc835
commit 0ac91a9f94

View File

@ -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: