configure NPM version for dependabot

604 Views Asked by At

I'm using dependabot to update my NPM dependencies with the following dependabot.yml

version: 2
updates:
- package-ecosystem: npm
  directory: "/"
  schedule:
    interval: monthly
  rebase-strategy: auto

But dependabot is using a different version of NPM than the one I have installed locally. Is there a way to specify which version of NPM dependabot uses?

1

There are 1 best solutions below

3
On

There's a way to specify the versions to be ignored, if that helps in your case. Imagining you're using a flavor of npm on 10.0.0, it would look something like:

ignore:
  - dependency-name: 'npm'
    versions: ['<10.0.0', '>=11.0.0']