I use apt-get on my webs server and npm on my server as as well as on my Macbook. I used to use homebew and MacPorts in the past, but I find app stores in general kind of make a mess of OS X after a while so I try to avoid it as long as possible. I had to install npm recently though after waiting months hoping I wouldn't need to :D