Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

pkg 5.8.1 somehow lists pkg-fetch 3.4.2 as required dependency in package-lock.json. How to update it so 3.5 is leveraged? #1998

Closed
RCALEAD opened this issue Sep 26, 2023 · 4 comments

Comments

@RCALEAD
Copy link

RCALEAD commented Sep 26, 2023

Discussed in https://github.com/vercel/pkg/discussions/1997

Originally posted by RCALEAD September 26, 2023
Working towards updating node.js to version 18.15, but somehow it still shows nodejs 18.5. Looks like issue is that pkg 5.8.1 is still listing pkg-fetch 3.4.2 as dependency in package-lock.json , which will only allow nodejs version 18.5. For nodejs version 18.15, it needs pkg-fetch 3.5 in dependency in package-lock.json - how this can be updated?

@RCALEAD RCALEAD changed the title pkg 5.8.1 somehow lists pkg-fetch 3.4.2 as required dependency in package-lock.json. How to update it so 3.5 pkg 5.8.1 somehow lists pkg-fetch 3.4.2 as required dependency in package-lock.json. How to update it so 3.5 is leveraged? Sep 26, 2023
@ryanrubleycoates
Copy link

I just added this to my package.json:

  "overrides": {
    "pkg": {
      "pkg-fetch": "^3.5.2"
    }
  }

@RCALEAD
Copy link
Author

RCALEAD commented Sep 27, 2023

Thanks a bunch @ryanrubleycoates - we were heading in that direction, good to know it's done before.

@ryanrubleycoates
Copy link

Unfortunately, we have a bunch of stuff that seems to be moving to requiring 18.17.0+ or 20+ and it looks like pkg might be coming to a dead-end from some other threads here.

@robertsLando
Copy link
Contributor

Use: https://github.com/yao-pkg/pkg

@leerob leerob closed this as completed Jan 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants