configure NPM version for dependabot
Asked Answered
P

1

8

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?

Postorbital answered 15/1, 2021 at 12:47 Comment(0)
I
0

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']
Imperceptive answered 10/11, 2023 at 20:10 Comment(2)
Doe this syntax mean that versions 11 and higher will be ignored?Frog
In the example above yes, but you can create your own range.Berard

© 2022 - 2024 — McMap. All rights reserved.