SHARE
TWEET

Untitled

a guest Apr 6th, 2012 343 Never
  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
RAW Paste Data
Top