Install next most recent version of node module if the very latest is unavailable

36 Views Asked by At

We have a local npm registry that is updated as and when requests are made to it.

This can results in failures because it knows [email protected] is out there, but hasn't synced it yet. Even if we only specify foo-sorter@^1.1.0 (forgive me if the semver is wrong) in out package.json, and we could get that.

I'm not in control of the registry, but if there was a way of telling NPM "Install next most recent version of node module if the very latest is unavailable", so if it fail to get [email protected] then it tries to get [email protected] or [email protected], then I could prevent build failures more often.

Is that an option? If not how else could I get it happen?

0

There are 0 best solutions below