hokaccha / nodebrew

Node.js version manager
MIT License
1.06k stars 66 forks source link

propose better way to install #2

Closed Jxck closed 12 years ago

Jxck commented 12 years ago

Hi author & forks I think blow is better & easy for install nodebew. like this.

Install

Download script and set.

$ mkdir ~/.nodebrew
$ cd ~/.nodebrew
$ curl -O https://raw.github.com/hokaccha/nodebrew/master/nodebrew 
$ chmod +x nodebrew

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

export PATH=$HOME/.nodebrew:$PATH

Reload config.

$ source ~/.bashrc

nodebew install makes symlink to ~/.nodebrew like this.

$ ls .nodebew
node -> ./current/bin/node
current
nodebrew
src

how do you think about it ?