Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 6th, 2012  |  syntax: None  |  size: 0.30 KB  |  hits: 131  |  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. for i in bin man lib; do
  2.   mkdir -p ~/.npm/${i}
  3. done
  4. cat <<END > ~/.npmrc
  5. binroot = ~/.npm/bin
  6. manroot = ~/.npm/man
  7. root = ~/.npm/lib
  8. END
  9. curl http://npmjs.org/install.sh | sh
  10. echo 'export PATH="${PATH}:~/.npm/bin"' >> ~/.bashrc
  11. echo 'export NODE_PATH="${HOME}/.npm/lib"' >> ~/.bashrc
  12. . .bashrc
  13. npm ls