How can I install a specific version of webdriver-manager?

Is there a way to install a specific version of webdriver-manager?
The reason behind this is that since yesterday Protractor specs are failing although it is working fine locally.
Here is what I’m getting:

[launcher] Process exited with error code 1
    vlog(2, () => this + ' scheduling notifications', this);

This answer suggested to install an older version to solve the problem, though I’m not sure how to do it in the circle.yml file. I tried to do this:

- npm install -g protractor
- npm install -g selenium-webdriver@2.47.0

but it doesn’t seem to be working.

What kind of error does the npm install -g selenium-webdriver@2.47.0 command result in?

No error, it looks like it got installed correctly, but when CricleCI runs Protractor conf.js I still get the error.

Is there any way to double-check that the older version is actually picked up after the npm install -g commands? From what I’ve seen, the node_modules directory inside the project dir can still have priority sometimes during the $PATH lookup.

This fixed it

- npm install -g protractor@2.5.1
1 Like

Excellent, thank you for sharing this!