8

I believe this is pretty common question, but still I could not find reliable answer.

In my package.json I have dependency - "grunt-selenium-webdriver", which has some dependency version listed in its package.json which is not accessible from our network (we are using internal NPM registry which lags sometimes).

I want to use current version of grunt-selenium-webdriver but with different version of nested dependency. Is this possible anyhow?

PS: I tried peer dependencies, but it seems that it aims to solve another issue.

vgrinko
  • 198
  • 1
  • 1
  • 9

1 Answers1

6

You can achieve this by NPM-Shrinkwrap functionality.

Other examples can be found on managing-node-js-dependencies-with-shrinkwrap.

Leponzo
  • 624
  • 1
  • 8
  • 20
Ravi
  • 1,320
  • 12
  • 19