Description
Version
3.0.0
Node and OS info
Node: v8.11.4, npm: 6.4.0, macOSX 10.12.6 and also tried on different machine Node:10.9.0, npm 6.2.0, macOSX 10.13.3
Steps to reproduce
vue create myrepo
npm run test:e2e
What is expected?
e2e testing to work without errors
What is actually happening?
errors
16:46:00.891 ERROR [SeleniumServer.boot] - Port 4444 is busy, please choose a free port and specify it using -port option
ERROR Error: Command failed: path2/myrepo/node_modules/nightwatch/bin/nightwatch --config path2/myrepo/node_modules/@vue/cli-plugin-e2e-nightwatch/nightwatch.config.js --env chrome
Error: Command failed: path2/myrepo/node_modules/nightwatch/bin/nightwatch --config path2/myrepo/node_modules/@vue/cli-plugin-e2e-nightwatch/nightwatch.config.js --env chrome
at makeError (path2/myrepo/node_modules/execa/index.js:172:9)
at Promise.all.then.arr (path2/myrepo/node_modules/execa/index.js:277:16)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
I have tried this on two mac machines and both produced the same error mentioned above
Activity
yyx990803 commentedon Aug 19, 2018
As the message suggests, make sure your port 4444 is not being already used...
joeSaad commentedon Aug 19, 2018
I cleared that port several times and made sure nothing is using it. Still the error message appeared.
yyx990803 commentedon Aug 20, 2018
Unfortunately, we can't reproduce this. What you can do is creating a
nightwatch.config.js
in your project (which will be merged into the default config) to specify a different port.fritx commentedon Sep 21, 2018
Similar error here, and finally fixed by upgrading
chromedriver
, inspired by SeleniumHQ/selenium#3001 (comment)fix e2e test by upgrading chromedriver version