Install npm automatically

master
Tim Caswell 2010-12-10 11:42:19 -08:00
parent 91d2be5179
commit a078d6427b
2 changed files with 6 additions and 1 deletions

View File

@ -13,10 +13,13 @@ Or if you have `git` installed, then just clone it:
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.
Often I also put in a line to use a specific version of node.
## Usage
To download, install, and use the v0.2.5 release of node do this:
To download, compile, and install the v0.2.5 release of node do this:
nvm install v0.2.5

2
nvm.sh
View File

@ -46,6 +46,8 @@ nvm()
make && \
make install && \
nvm use $2
echo "Installing NPM..."
curl http://npmjs.org/install.sh | sh
cd $START
;;
"deactivate" )