vercel / pkg

Package your Node.js project into an executable
https://npmjs.com/pkg
MIT License
24.28k stars 1.01k forks source link

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 closed 8 months ago

RCALEAD commented 11 months ago

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?
ryanrubleycoates commented 11 months ago

I just added this to my package.json:

  "overrides": {
    "pkg": {
      "pkg-fetch": "^3.5.2"
    }
  }
RCALEAD commented 11 months ago

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

ryanrubleycoates commented 11 months ago

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 commented 10 months ago

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