update npm the correct way

yanked from
https://github.com/mathiasbynens/dotfiles/commit/128bb08e3ebb0eebfad8fb77ad32fd05c89171a7

knock off some `sudo`s too since the homebrew node install.