Casper.js Starter Casper.js runs on phantom.js, it is not node.js! Although the syntax looks the same (both uses common js) but phantom does not support ES6.