Clean up npm integration a little bit
Change-Id: I849f1056d0188aef264777e18270728b1535f61cmaster
parent
926ea1d8e9
commit
924d965964
|
@ -19,7 +19,7 @@ Often I also put in a line to use a specific version of node.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
To download, compile, and install 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
|
nvm install v0.2.5
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,7 @@ if [ "x$has" != "x" ]; then
|
||||||
fi
|
fi
|
||||||
cat <<NVM_CODE >>~/.bashrc
|
cat <<NVM_CODE >>~/.bashrc
|
||||||
# ADDED BY npm FOR NVM
|
# ADDED BY npm FOR NVM
|
||||||
NVM_DIR=$dir
|
. $dir/nvm.sh
|
||||||
. \$NVM_DIR/nvm.sh
|
|
||||||
nvm use
|
|
||||||
# END ADDED BY npm FOR NVM
|
# END ADDED BY npm FOR NVM
|
||||||
NVM_CODE
|
NVM_CODE
|
||||||
|
|
||||||
|
|
6
nvm.sh
6
nvm.sh
|
@ -46,8 +46,10 @@ nvm()
|
||||||
make && \
|
make && \
|
||||||
make install && \
|
make install && \
|
||||||
nvm use $2
|
nvm use $2
|
||||||
echo "Installing NPM..."
|
if ! which npm ; then
|
||||||
curl http://npmjs.org/install.sh | sh
|
echo "Installing npm..."
|
||||||
|
curl http://npmjs.org/install.sh | sh
|
||||||
|
fi
|
||||||
cd $START
|
cd $START
|
||||||
;;
|
;;
|
||||||
"deactivate" )
|
"deactivate" )
|
||||||
|
|
Loading…
Reference in New Issue