npm equivalent of yarn resolutions?

Since NPM 8.3 the equivalent to yarn resolutions is called overrides.

To make sure the package foo is always installed as version 1.0.0 no matter what version your dependencies rely on:

{
   "overrides": {
     "foo": "1.0.0"
   }
 }

Documentation: https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides

Why and how the feature was added it’s discussed in the RFC and discussion on the topic was indexed on this github issue

Leave a Comment

techhipbettruvabetnorabahisbahis forumu