From a078d6427bd591ad23e5a57106989d70ba1c506e Mon Sep 17 00:00:00 2001 From: Tim Caswell Date: Fri, 10 Dec 2010 11:42:19 -0800 Subject: [PATCH] Install npm automatically --- README.markdown | 5 ++++- nvm.sh | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 2abfd18..d72720c 100644 --- a/README.markdown +++ b/README.markdown @@ -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 diff --git a/nvm.sh b/nvm.sh index f54cab8..9abec5a 100644 --- a/nvm.sh +++ b/nvm.sh @@ -46,6 +46,8 @@ nvm() make && \ make install && \ nvm use $2 + echo "Installing NPM..." + curl http://npmjs.org/install.sh | sh cd $START ;; "deactivate" )