node_modules/node-phantom/bridge.js:3 in global code https://github.com/segmentio/nightmare/issues/42 https://github.com/sgentle/phantomjs-node/pull/209 this might be helpful it's kind caused by phantomjs 2.0.0 change