catch(e) should be catch(err)

Stumbled into this

Phantom installation failed ReferenceError: err is not defined
    at extractDownload (../node_modules/phantomjs/install.js:155:53)