rogeriochaves / npm-force-resolutions

Force npm to install a specific transitive dependency version
567 stars 28 forks source link

Difference to npm's overrides unclear #50

Open stefanpl opened 2 years ago

stefanpl commented 2 years ago

Coming to this package from a stackoverflow post.

For me, it's hard to tell why this package exists. It seems redundant to what overrides do in npm natively.

I'm wondering:

Maybe (bold assumption: probably) I'm not the only one having these questions. I'd appreciate it very much to have a short notice mentioning the relation to overrides somewhere in the readme.

🙏

elcreator commented 2 years ago

There are many environments where npm version lesser than 8 should be used.

runderworld commented 2 years ago

@stefanpl

was this a legacy solution that existed before overrides?

precisely. this is the entire reason this library was built, to provide the functionality before it was publicly known that NPM maintainers would introduce the feature themselves.

can this do anything that overrides can't?

no, it's more limited than built-in npmoverrides.