
Untitled
By: a guest on
Apr 30th, 2012 | syntax:
None | size: 0.80 KB | hits: 19 | expires: Never
#
# Install NodeJS:0.6.5/NPM from Github and node-inspector from NPM in user system.
#
# this gist can be run using: curl https://raw.github.com/gist/1042374/install0.6.5.sh | bash
# location of node and supporting scripts
NODE="\$HOME/local/node"
# put node, npm and other global node programs in path if needed
grep "export PATH=$NODE:\$PATH" ~/.bashrc
if [ $? -ne 0 ] ; then echo "export PATH=$NODE:\$PATH" >> ~/.bashrc ; fi
. ~/.bashrc
# remove all previous install dirs
# rm -r ~/local
rm -r ./node
#rm -r ./.npm
# create empty local dir
mkdir ~/local
# install nodejs from Github using master branch!!!!
git clone git://github.com/joyent/node.git
cd node
git checkout v0.6.5
./configure --prefix=~/local/node
make install
cd ..
# install node-inspector from NPM repository
npm install node-inspector -g