Bug 33033 - Update Nodejs to the latest active LTS 20.12
Summary: Update Nodejs to the latest active LTS 20.12
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2024-03-29 13:04 CET by christian barranco
Modified: 2024-04-03 19:01 CEST (History)
3 users (show)

See Also:
Source RPM: nodejs-18.19.1-1.mga9.src.rpm, yarnpkg-1.22.21-0.10.2.4.1.mga9.src.rpm
CVE:
Status comment:


Attachments
Test file (345 bytes, application/x-javascript)
2024-04-01 19:15 CEST, katnatek
Details

Description christian barranco 2024-03-29 13:04:15 CET
The latest active LTS branch for nodejs is 20.
Some applications have started to move to this branch. As MGA10 is not robustly planned yet, the proposal is to move to this new branch to align with Cauldron.
It will limit the maintenance workload and extend the life of MGA9.
I have been using it for some time to build and to use signal-desktop. It runs like a charm.

https://github.com/nodejs/node/releases/tag/v20.12.0
christian barranco 2024-03-29 17:02:08 CET

Source RPM: nodejs-18.19.1-1.mga9.src.rpm => nodejs-18.19.1-1.mga9.src.rpm, yarnpkg-1.22.21-0.10.2.4.1.mga9.src.rpm

Comment 1 christian barranco 2024-03-30 12:00:06 CET
ADVISORY NOTICE PROPOSAL
========================
Nodejs 20.12.0 packages bring the new active LTS branch and fix bugs


Description
Nodejs 20 is the new active LTS branch. This update allows to switch to it.
Many bugs are fixed and more detailed information can be found following the links listed as references.

yarn package is updated to 1.22.22 and built with npm 10.5.0

           
References
https://bugs.mageia.org/show_bug.cgi?id=33033
https://github.com/nodejs/node/releases/tag/v20.0.0
https://github.com/nodejs/node/releases/tag/v20.1.0
https://github.com/nodejs/node/releases/tag/v20.2.0
https://github.com/nodejs/node/releases/tag/v20.3.0
https://github.com/nodejs/node/releases/tag/v20.3.1
https://github.com/nodejs/node/releases/tag/v20.4.0
https://github.com/nodejs/node/releases/tag/v20.5.0
https://github.com/nodejs/node/releases/tag/v20.5.1
https://github.com/nodejs/node/releases/tag/v20.6.0
https://github.com/nodejs/node/releases/tag/v20.6.1
https://github.com/nodejs/node/releases/tag/v20.7.0
https://github.com/nodejs/node/releases/tag/v20.8.0
https://github.com/nodejs/node/releases/tag/v20.8.1
https://github.com/nodejs/node/releases/tag/v20.9.0
https://github.com/nodejs/node/releases/tag/v20.10.0
https://github.com/nodejs/node/releases/tag/v20.11.0
https://github.com/nodejs/node/releases/tag/v20.11.1
https://github.com/nodejs/node/releases/tag/v20.12.0
https://github.com/yarnpkg/yarn/releases/tag/v1.22.22


SRPMS
9/core
nodejs-20.12.0-1.mga9.src.rpm
yarnpkg-1.22.22-0.10.5.0.1.mga9.src.rpm

    
PACKAGES FOR QA TESTING
=======================
For x86_64:
v8-devel-11.3.244.8.mga9-2.mga9.x86_64.rpm
nodejs-20.12.0-1.mga9.x86_64.rpm
nodejs-devel-20.12.0-1.mga9.x86_64.rpm
npm-10.5.0-1.20.12.0.1.mga9.x86_64.rpm
nodejs-docs-20.12.0-1.mga9.noarch.rpm
nodejs-libs-20.12.0-1.mga9.x86_64.rpm
yarnpkg-1.22.22-0.10.5.0.1.mga9.noarch.rpm

Assignee: chb0 => qa-bugs

katnatek 2024-03-30 17:42:53 CET

Keywords: (none) => advisory

Comment 2 Herman Viaene 2024-04-01 15:31:04 CEST
MGA9-64 Plasma Wayland on HP-Pavillion
No installation issues.
Ref bug 32176 for testing
$ npm ls -g
/usr/lib
├── b64@4.1.2
├── boom@7.2.0
├── bounce@1.2.3
├── corepack@0.25.2
├── cryptiles@4.1.1
├── hawk@7.0.10
├── hoek@6.1.2
├── npm@10.5.0
├── sntp@3.0.1
├── teamwork@3.0.3
└── yarn@1.22.22

$ npm ls
/home/tester9
└── (empty)

$ npm install express

added 64 packages in 9s

12 packages are looking for funding
  run `npm fund` for details

$ npm ls
tester9@ /home/tester9
└── express@4.19.2

$ npm install express5
npm WARN deprecated string-similarity@4.0.4: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

added 48 packages, and audited 113 packages in 12s

15 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

$ ls node_modules
 abstract-logging/       escape-html/                  function-bind/              negotiator/               safe-regex2/
 accepts/                es-define-property/           get-intrinsic/              object-inspect/           secure-json-parse/
 ajv/                    es-errors/                    gopd/                       on-finished/              semver/
 archy/                  etag/                         hasown/                     parseurl/                 semver-store/
 array-flatten/          express/                      has-property-descriptors/   path-to-regexp/           send/
 atomic-sleep/           express5/                     has-proto/                  pino/                     serve-static/
 avvio/                  fast-content-type-parse/      has-symbols/                pino-std-serializers/     set-cookie-parser/
 body-parser/            fast-decode-uri-component/    http-errors/                process-warning/          set-function-length/
 bytes/                  fast-deep-equal/              iconv-lite/                 proxy-addr/               setprototypeof/
 call-bind/             '@fastify'/                    inherits/                   punycode/                 side-channel/
 content-disposition/    fastify/                      ipaddr.js/                  qs/                       sonic-boom/
 content-type/           fast-json-stable-stringify/   json-schema-traverse/       queue-microtask/          statuses/
 cookie/                 fast-json-stringify/          light-my-request/           quick-format-unescaped/   string-similarity/
 cookie-signature/       fastq/                        lru-cache/                  range-parser/             tiny-lru/
 debug/                  fast-redact/                  media-typer/                raw-body/                 toidentifier/
 deepmerge/              fast-safe-stringify/          merge-descriptors/          require-from-string/      type-is/
 define-data-property/   finalhandler/                 methods/                    ret/                      unpipe/
 depd/                   find-my-way/                  mime/                       reusify/                  uri-js/
 destroy/                flatstr/                      mime-db/                    rfdc/                     utils-merge/
 ee-first/               forwarded/                    mime-types/                 safe-buffer/              vary/
 encodeurl/              fresh/                        ms/                         safer-buffer/             yallist/

$ node main.js
node:internal/modules/cjs/loader:1146
  throw err;
  ^

Error: Cannot find module '/home/tester9/main.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
    at Module._load (node:internal/modules/cjs/loader:984:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.12.0

I haven't seen that before, did I miss something???
I  understand from bug 32341 that the yarnpkg is used by those commands and does not need separate testing, correct???

CC: (none) => herman.viaene

Comment 3 christian barranco 2024-04-01 16:51:35 CEST
Thanks Herman for your tests.

The error states: Cannot find module '/home/tester9/main.js'

Should it be provided or is it created?

For yarn, it is a npm wrapper, at first. In my opinion, installation update is enough, except if you are used to build a specific package with it already.
Comment 4 katnatek 2024-04-01 19:15:42 CEST
Created attachment 14488 [details]
Test file

(In reply to christian barranco from comment #3)
> Thanks Herman for your tests.
> 
> The error states: Cannot find module '/home/tester9/main.js'
> 
> Should it be provided or is it created?

I am not sure about that, I found that issue too, but then I search for a simple example and get the one in the attachment

node server.js 
Server running at http://127.0.0.1:3000/


http://127.0.0.1:3000/

Shows: Hello World
katnatek 2024-04-01 19:17:24 CEST

CC: (none) => andrewsfarm

katnatek 2024-04-01 19:17:40 CEST

Whiteboard: (none) => MGA9-64-OK

Comment 5 christian barranco 2024-04-01 19:33:44 CEST
(In reply to katnatek from comment #4)
> Created attachment 14488 [details]
> Test file
> 
> (In reply to christian barranco from comment #3)
> > Thanks Herman for your tests.
> > 
> > The error states: Cannot find module '/home/tester9/main.js'
> > 
> > Should it be provided or is it created?
> 
> I am not sure about that, I found that issue too, but then I search for a
> simple example and get the one in the attachment
> 
> node server.js 
> Server running at http://127.0.0.1:3000/
> 
> 
> http://127.0.0.1:3000/
> 
> Shows: Hello World

Yes, I have a similar example and it works out.
Comment 6 Thomas Andrews 2024-04-01 23:12:17 CEST
Validating.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 7 Mageia Robot 2024-04-03 19:01:05 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2024-0119.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.