Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i in bin man lib; do
- mkdir -p ~/.npm/${i}
- done
- cat <<END > ~/.npmrc
- binroot = ~/.npm/bin
- manroot = ~/.npm/man
- root = ~/.npm/lib
- END
- curl http://npmjs.org/install.sh | sh
- echo 'export PATH="${PATH}:~/.npm/bin"' >> ~/.bashrc
- echo 'export NODE_PATH="${HOME}/.npm/lib"' >> ~/.bashrc
- . .bashrc
- npm ls
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement