Skip to content

Commit

Permalink
Install npm into place when switching versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhm committed Mar 5, 2012
1 parent 99b97d4 commit 1c682a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/n
Expand Up @@ -144,7 +144,9 @@ install_node() {
&& cp -fr $dir/include/node $N_PREFIX/include \
&& cp -f $dir/bin/node $N_PREFIX/bin/node \
&& cp -f $dir/bin/node-waf $N_PREFIX/bin/node-waf \
&& cp -fr $dir/lib/node/* $N_PREFIX/lib/node/ .
&& cp -fr $dir/lib/node/* $N_PREFIX/lib/node/. \
&& rm -f $N_PREFIX/bin/npm \
&& ln -s $dir/bin/npm $N_PREFIX/bin/npm
# install
else
local tarball="node-v$version.tar.gz"
Expand Down

0 comments on commit 1c682a2

Please sign in to comment.