簡體   English   中英

為什么全新安裝的node.js和protractor錯誤地輸出`execvp`沒有這樣的文件或目錄?

[英]Why would a fresh install of node.js and protractor error out with `execvp` No such file or directory?

我已經安裝了幾個版本的node.js和protractor,然后按照說明更新了webdriver,但是我沒有想到的任何組合都能成功啟動webdriver。

一些有用的細節:

  • 在Ubuntu 64位上
  • 試過node.js v0.10.15和v0.10.26
  • 量化器0.18.1和0.19.0

這是我運行的命令,以及相應的錯誤(安裝量角器后):

$ 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)

結果我需要安裝Java Development Kit(JDK),然后它工作正常。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM