Request for node 22

Bug #2118978 reported by Nathan Teodosio
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
chromium-browser (Ubuntu)
Triaged
High
Unassigned
nodejs (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Chromium fails to build[1] with

--->
:: AssertionError [ERR_ASSERTION]: Failed NodeJS version check: Expected version 'v22.11.0', but found 'v18.19.1'. Did you run 'gclient sync'? If the problem persists try running 'gclient sync -f' instead, or deleting third_party/node/{linux,win,mac} folders and trying again.
:: at main (file:///build/chromium/parts/chromium/build/third_party/node/check_version.js:37:10) {
:: generatedMessage: false,
:: code: 'ERR_ASSERTION',
:: actual: 'v22.11.0',
:: expected: 'v18.19.1',
<---

How feasible is updating Node to 22 and then backporting it to 24.04?

Up to now we've been pulling the updated Node at build-time but Node they do not publish binaries for Risc-V.

[1] https://launchpadlibrarian.net/807881851/buildlog_snap_ubuntu_noble_arm64_chr-dev-risc_BUILDING.txt.gz

Tags: noble riscv
no longer affects: chromium (Ubuntu)
Changed in chromium-browser (Ubuntu):
status: New → Triaged
importance: Undecided → High
tags: added: noble riscv
Revision history for this message
Simon Chopin (schopin) wrote :

Disclaimer: absolutely not volunteering to do the work.

The backport would need to be done as a separate package, as I'm guessing Node 18 to 22 comes with a fair share of breakage. We have had similar approaches for other packages needed by browsers, e.g. cmake-mozilla in focal.

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

https://node.green/ has the compatibility matrix. I can't find any breakage there.

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

For other toolchains like rust, gcc, llvm we allow the parallel installation of multiple versions, e.g. gcc-13, gcc-14, gcc-15. Maybe that is also the way to go for NodeJS.

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

Debian experimental has NodeJS
22.18.0+dfsg+~cs22.17.2-2: amd64 i386 loong64 ppc64el s390x
22.18.0+dfsg-1: arm64 armhf
22.14.0+dfsg-1: riscv64

We should be able to import this to get started.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nodejs (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.