How to override a denpendencie's dependency in package.json? Add this to your package.json "overrides": { "foo": "1.0.0" } https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides