selenium-standalone icon indicating copy to clipboard operation
selenium-standalone copied to clipboard

latest selenium-standalone doesn't install or run

Open hayesmaker opened this issue 10 years ago • 4 comments

I started getting firefox errors with selenium standalone, so decided to update:

npm install selenium-standalone@latest -g

now when i try selenium-standalone install or selenium-standalone start i get this error:

➜  ~ selenium-standalone install
module.js:329
    throw err;
    ^

Error: Cannot find module 'bl'
    at Function.Module._resolveFilename (module.js:327:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:355:17)
    at require (internal/module.js:13:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/selenium-standalone/node_modules/request/request.js:12:10)
    at Module._compile (module.js:399:26)
    at Object.Module._extensions..js (module.js:406:10)
    at Module.load (module.js:345:32)
    at Function.Module._load (module.js:302:12)
    at Module.require (module.js:355:17)

hayesmaker avatar May 14 '16 10:05 hayesmaker

What version of node and npm are you using?

10:41:10 sel $ node -v
v4.4.4

10:41:15 sel $ npm -v
2.15.1

10:41:18 sel $ npm install selenium-standalone
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
[email protected] node_modules/selenium-standalone
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected]

10:41:31 sel $ ./node_modules/selenium-standalone/bin/selenium-standalone install
----------
selenium-standalone installation starting
----------

---
selenium install:
from: https://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.0.jar
to: /Users/sash/Desktop/sel/node_modules/selenium-standalone/.selenium/selenium-server/2.53.0-server.jar
---
chrome install:
from: https://chromedriver.storage.googleapis.com/2.21/chromedriver_mac32.zip
to: /Users/sash/Desktop/sel/node_modules/selenium-standalone/.selenium/chromedriver/2.21-x64-chromedriver


selenium-standalone installation [=================== ] 96% 0.0s

-----
selenium-standalone installation finished
-----

stephenash avatar May 16 '16 17:05 stephenash

You may have a broken node_modules, please try again

vvo avatar May 25 '16 14:05 vvo

Hi, I'm getting the below error when I ran the following command $ ./node_modules/selenium-standalone/bin/selenium-standalone install. Currently I'm using node v12.13.0 and npm 6.12.0

not found: java Usage: selenium-standalone action [options]

Please help me to fix the issue. I installed the selenium-standalone via globally.

Pavankumar95153 avatar Dec 28 '19 07:12 Pavankumar95153

You need to install java jdk, google it

vvo avatar Dec 28 '19 12:12 vvo