npm install webdriver-sync失败

时间:2015-04-29 18:15:35

标签: node.js npm

我在RHEL 6.5主机上运行nodejs v0.12.2。我正在尝试使用npm安装webdriver-sync模块。

但是当我去安装时,我遇到了这个错误:

root@206459673 ~]# npm install webdriver-sync
npm WARN package.json assert@1.3.0 assert is also the name of a node core module.

npm WARN package.json sqwish@0.2.2没有存储库字段。

> java@0.5.3 install /root/node_modules/webdriver-sync/node_modules/java
> node-gyp rebuild

[node-java] Error: not found: javac
gyp: Call to 'node findJavaHome.js' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 2.6.32-431.29.2.el6.x86_64
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/node_modules/webdriver-sync/node_modules/java
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok

> selenium-binaries@0.3.6 install /root/node_modules/webdriver-sync/node_modules/selenium-binaries
> node ./lib/install.js


[selenium-binaries] Downloading selenium
[selenium-binaries] http://selenium-release.storage.googleapis.com/2.45/selenium-server-standalone-2.45.0.jar
[selenium-binaries]  -> /root/node_modules/webdriver-sync/node_modules/selenium-binaries/lib/selenium-binaries/selenium/2.45.0
[selenium-binaries] Status: 35269077 of 35269077
[selenium-binaries] Finished downloading http://selenium-release.storage.googleapis.com/2.45/selenium-server-standalone-2.45.0.jar

[selenium-binaries] Downloading chromedriver
[selenium-binaries] http://chromedriver.storage.googleapis.com/2.15/chromedriver_linux64.zip
[selenium-binaries]  -> /root/node_modules/webdriver-sync/node_modules/selenium-binaries/lib/selenium-binaries/chromedriver/2.15
[selenium-binaries] Status: 2281614 of 2281614
[selenium-binaries] Finished downloading http://chromedriver.storage.googleapis.com/2.15/chromedriver_linux64.zip
npm ERR! Linux 2.6.32-431.29.2.el6.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "webdriver-sync"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! code ELIFECYCLE

npm ERR! java@0.5.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the java@0.5.3 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the java package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls java
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /root/npm-debug.log

有人可以就如何解决此错误提供一些建议吗?

谢谢!

0 个答案:

没有答案