Skip to content

Nodejs 20 EOL #515284

Closed
Closed

Description

@qweered

Node.js 20.x reached upstream end-of-life on 2026-04-30 (release schedule). It has been marked as insecure in #511784, and we want to remove the nodejs_20 package soon. The following packages still reference it:

Prior work: #166440 #293172 #357971 #511784

Activity

  1. added
    5.scope: tracking
    on May 1, 2026
  2. added this to the 26.05 milestone on May 1, 2026
  3. deejayem commented on May 1, 2026

    @deejayem
    Member

    cdktn-cli was stuck on nodejs_20 because on aarch64-linux that's the latest supported version, but if that's being dropped we'll just have to mark it broken there (elsewhere it works with 22). I've raised: #515563

  4. added a commit that references this issue on May 1, 2026
    60ede54
  5. TheRealGramdalf commented on May 1, 2026

    @TheRealGramdalf
    Contributor

    dashy-ui just got a major release that includes a newer node version, I was planning on waiting for a few hotfix releases to allow time for bugs to get ironed out (there were some migration/regression issues). I can get it merged sooner if necessary.

  6. added a commit that references this issue on May 1, 2026
    f07457f
  7. Wulfsta commented on May 1, 2026

    @Wulfsta
    Member

    Mainsail should be easy to update, just have to find time to do it.

  8. eljamm commented on May 2, 2026

    @eljamm
    Contributor

    taler-wallet-core updates nodejs in #515750.

    Also, I see that there are backporting tasks, does that mean nodejs 20 will be dropped from 25.11?

  9. qweered commented on May 2, 2026

    @qweered
    ContributorAuthor

    Also, I see that there are backporting tasks, does that mean nodejs 20 will be dropped from 25.11?

    Breaking changes restricted, but we can backport updates that don't make it to 26.05 until branch off

  10. 19 remaining items

  11. ColorfulRhino commented on Jun 2, 2026

    @ColorfulRhino

    After giving a quick look at dependency-track, it does not compile with more recent versions of nodejs. @e1mo @xanderio , opening an issue upstream may help accelerate things. And sorry for the ping if you are already aware of this.

    The Dependency-Track frontend was bumped to use Node 22, which builds fine with their GitHub Actions. But the Nix package does not build with Node 22, even when updating to version 5.0.0-rc.3. From the log I suspect it may be due to the transitive dependency libxmljs2 not being source-compilable with Node >=22.

    npm error code 1
    npm error path /build/source/node_modules/libxmljs2
    npm error command failed
    npm error command sh -c node-pre-gyp install --fallback-to-build --loglevel http
    npm error make: Entering directory '/build/source/node_modules/libxmljs2/build'
    npm error   CXX(target) Release/obj.target/xmljs/src/libxmljs.o
    npm error make: Leaving directory '/build/source/node_modules/libxmljs2/build'
    npm error Failed to execute '/nix/store/gq9hcb85prkd6gsghzfmil6rbcf8xq9a-nodejs-slim-22.22.3/bin/node /nix/store/i7ycrm2blpar0nyi6v8rprv4sq1hafpv-nodejs-slim-22.22.3-npm/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --loglevel=http --module=/build/source/node_modules/libxmljs2/build/Release/xmljs.node --module_name=xmljs --module_path=/build/source/node_modules/libxmljs2/build/Release --napi_version=10 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v127' (1)
    npm error node-pre-gyp http GET https://github.com/marudor/libxmljs2/releases/download/v0.33.0/node-v127-linux-x64-glibc.tar.gz
    npm error node-pre-gyp ERR! install request to https://github.com/marudor/libxmljs2/releases/download/v0.33.0/node-v127-linux-x64-glibc.tar.gz failed, reason: getaddrinfo EAI_AGAIN github.com 
    npm error node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v127 ABI, glibc) (falling back to source compile with node-gyp) 
    npm error node-pre-gyp WARN Hit error request to https://github.com/marudor/libxmljs2/releases/download/v0.33.0/node-v127-linux-x64-glibc.tar.gz failed, reason: getaddrinfo EAI_AGAIN github.com 
    npm error gyp info it worked if it ends with ok
    npm error gyp info using [email protected]
    npm error gyp info using [email protected] | linux | x64
    npm error gyp info ok 
    npm error In file included from ../src/libxmljs.h:5,
    npm error                  from ../src/libxmljs.cc:7:
    npm error ../../nan/nan.h: In function 'void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, GetterCallback, SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, imp::Sig)':
    npm error ../../nan/nan.h:2548:19: error: no matching function for call to 'v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>&, void (*&)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&), void (*&)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&), v8::Local<v8::Object>&, v8::AccessControl&, v8::PropertyAttribute&)'
    
    [...]
    
    npm error make: *** [xmljs.target.mk:165: Release/obj.target/xmljs/src/libxmljs.o] Error 1
    npm error gyp ERR! build error 
    npm error gyp ERR! stack Error: `make` failed with exit code: 2
    npm error gyp ERR! stack at ChildProcess.<anonymous> (/nix/store/i7ycrm2blpar0nyi6v8rprv4sq1hafpv-nodejs-slim-22.22.3-npm/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)
    npm error gyp ERR! System Linux 6.12.85
    npm error gyp ERR! command "/nix/store/gq9hcb85prkd6gsghzfmil6rbcf8xq9a-nodejs-slim-22.22.3/bin/node" "/nix/store/i7ycrm2blpar0nyi6v8rprv4sq1hafpv-nodejs-slim-22.22.3-npm/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--loglevel=http" "--module=/build/source/node_modules/libxmljs2/build/Release/xmljs.node" "--module_name=xmljs" "--module_path=/build/source/node_modules/libxmljs2/build/Release" "--napi_version=10" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v127"
    npm error gyp ERR! cwd /build/source/node_modules/libxmljs2
    npm error gyp ERR! node -v v22.22.3
    npm error gyp ERR! node-gyp -v v11.5.0
    npm error gyp ERR! not ok 
    npm error node-pre-gyp ERR! build error 
    npm error node-pre-gyp ERR! stack Error: Failed to execute '/nix/store/gq9hcb85prkd6gsghzfmil6rbcf8xq9a-nodejs-slim-22.22.3/bin/node /nix/store/i7ycrm2blpar0nyi6v8rprv4sq1hafpv-nodejs-slim-22.22.3-npm/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --loglevel=http --module=/build/source/node_modules/libxmljs2/build/Release/xmljs.node --module_name=xmljs --module_path=/build/source/node_modules/libxmljs2/build/Release --napi_version=10 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v127' (1)
    npm error node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/build/source/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
    npm error node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:519:28)
    npm error node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1101:16)
    npm error node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:304:5)
    npm error node-pre-gyp ERR! System Linux 6.12.85
    npm error node-pre-gyp ERR! command "/nix/store/gq9hcb85prkd6gsghzfmil6rbcf8xq9a-nodejs-slim-22.22.3/bin/node" "/build/source/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--loglevel" "http"
    npm error node-pre-gyp ERR! cwd /build/source/node_modules/libxmljs2
    npm error node-pre-gyp ERR! node -v v22.22.3
    npm error node-pre-gyp ERR! node-pre-gyp -v v1.0.11
    npm error node-pre-gyp ERR! not ok
    

    Does anyone have an idea how this could be solved?

  12. qweered commented on Jun 7, 2026

    @qweered
    ContributorAuthor

    dependency-track v5 released @e1mo, @xanderio

  13. ColorfulRhino commented on Jun 8, 2026

    @ColorfulRhino

    I have fixed the above mentioned error building dependency-track with Node >=22.

    The fix is included in dependency-track v5.0.0: DependencyTrack/frontend#1561

    I have also backported this to the 4.14.x branch: DependencyTrack/frontend#1575 We need to wait for the release of 4.14.3 though.

    Since the v5 upgrade guide recommends to be on >=v4.14.2 and the current version in nixpkgs is only v4.14.1, we might need to give people the time to upgrade to v4.14.3 and then to v5. This is another topic though.

  14. xanderio commented on Jun 17, 2026

    @xanderio
    Contributor

    I was able to get dependency track 5.0.1 to build in nixpkgs, the PR still needs some work on the module and release notes line about only PostgreSQL being support now. Do to this we can't even backport this to nixos 26.05.

  15. qweered commented on Jun 17, 2026

    @qweered
    ContributorAuthor

    Its fine, breaking changes shouldn't be backported anyway

  16. xanderio commented on Jul 7, 2026

    @xanderio
    Contributor

    Let's go with #539270 for now, updates to the latest 2.14 version and includes that patch to drop the Node.js 20 requirement.

  17. qweered commented on Jul 9, 2026

    @qweered
    ContributorAuthor

    Only 1 package left, needs merge

  18. modified the milestones: 26.05, 26.11 on Jul 12, 2026
  19. bartoostveen commented on Jul 15, 2026

    @bartoostveen
    Member

    Resolved by #541445

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    5.scope: tracking6.topic: nodejs

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions