Skip to content
This repository

Node.js version manager

Octocat-spinner-32 completions Add completions November 30, 2013
Octocat-spinner-32 t Make completion functions installable January 10, 2014
Octocat-spinner-32 .gitignore Add ignore `cpanfile.snapshot` November 30, 2013
Octocat-spinner-32 .travis.yml Remove 5.8 March 31, 2013
Octocat-spinner-32 Release v0.7.2 January 13, 2014
Octocat-spinner-32 LICENSE Add LICENSE December 07, 2011
Octocat-spinner-32 Update README (support `exec`) November 30, 2013
Octocat-spinner-32 carton.lock Support cpanfile March 31, 2013
Octocat-spinner-32 cpanfile Support cpanfile March 31, 2013
Octocat-spinner-32 nodebrew Release v0.7.2 January 13, 2014


Build Status

Node.js version manager.


Using curl one liner.

$ curl -L | perl - setup

Or download and setup.

$ wget
$ perl nodebrew setup

Add PATH setting your shell config file, .bashrc or .zshrc.

export PATH=$HOME/.nodebrew/current/bin:$PATH

Reload config.

$ source ~/.bashrc


$ nodebrew help


NODEBREW_ROOT env var can change nodebrew's home directory. default is $HOME/.nodebrew.

export NODEBREW_ROOT=/path/to/.nodebrew



$ nodebrew install v0.6.0
install ...

# or
$ nodebrew install latest # latest version
$ nodebrew install stable # stable version
$ nodebrew install v0.6.x # v0.6 latest
$ nodebrew install 0.6.0  # without `v`

Switch use version.

$ nodebrew use v0.6.0
$ node -v

# or
$ nodebrew use latest # latest version
$ nodebrew use stable # stable version
$ nodebrew use v0.6.x # v0.6 latest
$ nodebrew use 0.6.0  # without `v`

View all installed version list or ls.

$ nodebrew ls

current: v0.6.0

Remote version view.

$ nodebrew ls-remote
v0.0.1    v0.0.2    v0.0.3    v0.0.4    v0.0.5    v0.0.6    

Remote and local version view.

$ nodebrew ls-all
v0.0.1    v0.0.2    v0.0.3    v0.0.4    v0.0.5    v0.0.6    


current: v0.6.0

Set alias.

$ nodebrew alias default v0.4.7
default -> v0.4.7

$ nodebrew use default
use v0.4.7

$ nodebrew unalias default
remove default


$ nodebrew uninstall v0.6.0
v0.6.0 uninstalled

Update nodebrew.

$ nodebrew selfupdate

Execute other version temporary.

$ nodebrew exec v0.6.0 -- node app.js


$ nodebrew help                         Show this message
$ nodebrew install <version>            Download and install a <version> (compile from source)
$ nodebrew install-binary <version>     Download and install a <version> (binary file)
$ nodebrew uninstall <version>          Uninstall a version
$ nodebrew use <version>                Use <version>
$ nodebrew list                         List installed versions
$ nodebrew ls                           Alias for `list`
$ nodebrew ls-remote                    List remote versions
$ nodebrew ls-all                       List remote and installed versions
$ nodebrew alias <key> <version>        Set alias to version
$ nodebrew unalias <key>                Remove alias
$ nodebrew clean <version> | all        Remove source file
$ nodebrew selfupdate                   Update nodebrew
$ nodebrew migrate-package <version>    Install global NPM packages contained in <version> to current version
$ nodebrew exec <version> -- <command>  Execute <command> specified <version>


Install module for testing.

$ carton install

Run test.

$ carton exec -- prove -lvr
Something went wrong with that request. Please try again.