nodejs server error with selenium-webdriver
npm i selenium-webdriver@3.0.0-beta-2
did the trick for me.
P.S. also consider fixing that in your package.json if you have any.
Check your node version, you should be using version 6:
node --version
To install the latest node use:
nvm install v6.9.0nvm use 6.9.0
I have just had the same problem which I solved by updating to node 6.x following the instructions on the node site.
Upgrading solved the first error but then I realised that I did not have any of the "additional components" mentioned in the selenium-webdriver installation instructions.
I opted to install the node chromedriver and was able to successfully run a selenium test.