Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 30th, 2012  |  syntax: None  |  size: 0.80 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #
  2. # Install NodeJS:0.6.5/NPM from Github and node-inspector from NPM in user system.
  3. #
  4. # this gist can be run using: curl https://raw.github.com/gist/1042374/install0.6.5.sh | bash
  5.  
  6. # location of node and supporting scripts
  7. NODE="\$HOME/local/node"
  8.  
  9. # put node, npm and other global node programs in path if needed
  10. grep "export PATH=$NODE:\$PATH" ~/.bashrc
  11. if [ $? -ne 0 ] ; then echo "export PATH=$NODE:\$PATH" >> ~/.bashrc ; fi
  12. . ~/.bashrc
  13.  
  14. # remove all previous install dirs
  15. # rm -r ~/local
  16. rm -r ./node
  17. #rm -r ./.npm
  18.  
  19. # create empty local dir
  20. mkdir ~/local
  21.  
  22. # install nodejs from Github using master branch!!!!
  23. git clone git://github.com/joyent/node.git
  24. cd node
  25. git checkout v0.6.5
  26. ./configure --prefix=~/local/node
  27. make install
  28. cd ..
  29.  
  30. # install node-inspector from NPM repository
  31. npm install node-inspector -g