Updated for node 0.10 and npm 1.2