reordered install, replaced homebrew install, sudo'd the npm installs