Clean up npm integration a little bit

Change-Id: I849f1056d0188aef264777e18270728b1535f61c
This commit is contained in:
Tim Caswell
2010-12-10 12:43:27 -08:00
parent 926ea1d8e9
commit 924d965964
3 changed files with 6 additions and 6 deletions

6
nvm.sh
View File

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