Why do we need a new installation of node.js and protractor with `execvp` No such file or directory?

I installed several versions of node.js and protractor, and then followed the instructions for updating webdriver, but none of the combinations that I came up with starts webdriver.

Some useful details:

  • On a 64-bit version of Ubuntu
  • Tried node.js v0.10.15 and v0.10.26
  • Test protractor 0.18.1 and 0.19.0

Here are the commands that I executed and the corresponding error (after installing the protractor):

$ webdriver-manager update
Updating selenium standalone
downloading https://selenium.googlecode.com/files/selenium-server-standalone-2.39.0.jar...
Updating chromedriver
downloading https://chromedriver.storage.googleapis.com/2.8/chromedriver_linux64.zip...
chromedriver_2.8.zip downloaded to /home/<user>/.nvm/v0.10.26/lib/node_modules/protractor/selenium/chromedriver_2.8.zip
selenium-server-standalone-2.39.0.jar downloaded to /home/<user>/.nvm/v0.10.26/lib/node_modules/protractor/selenium/selenium-server-standalone-2.39.0.jar


$ webdriver-manager start
execvp(): No such file or directory
seleniumProcess.pid: 4567

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:988:11)
    at Process.ChildProcess._handle.onexit (child_process.js:779:34)
+4
source share
1 answer

Turns out I needed to install the Java Development Kit (JDK), then it worked fine.

+3

Source: https://habr.com/ru/post/1528232/


All Articles