fixed for node 0.10.31 and  npm 2.0.0-beta