Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

`@yarnpkg/cli` v4 fails in Node.js 22 (macos/ubuntu)

Aperta Adatta ai principianti
#1,164 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@MikeMcC399 ci sta già lavorando.

Dal 20/10/2026.

  • #1205 di @MikeMcC399 — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, node.js
Ambito
testing

Direzione di ricerca

La modifica si trova in lib/lookup.json di nodejs/citgm, nella voce @yarnpkg/cli intorno alle righe 29-41; leggi lo schema di lookup e la sintassi di skip nel README o nella documentazione di citgm per confermare come vengono espresse le condizioni di piattaforma e versione. Aggiungi la condizione di skip suggerita (<24 e win32) a quella voce, poi esegui node bin/citgm.js @yarnpkg/cli o i test di lookup per confermare che la voce venga analizzata correttamente e che il modulo venga saltato sulle varianti che falliscono. Completato quando la lista di skip della voce corrisponde alle righe della matrice che falliscono (Node 22 macos/ubuntu, Node 26 windows) e nessun'altra voce cambia.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Situation

Running @yarnpkg/cli fails in

macos/ubuntu
Node.js 22

TypeError: Cannot convert undefined or null to object

windows
Node.js 26

Error: error:1C8000BA:Provider routines::entropy source strength too weak```
Item Status
npm package https://www.npmjs.com/package/@yarnpkg/cli
npm status active
last published 4.18.1 Sep 24, 2026
weekly downloads 93,079
repo location https://github.com/yarnpkg/berry
repo status active
lookup maintainer 1 arcanis - last PR Jun 2026
lookup maintainer 2 merceyz - last PR Feb 2025
lookup maintainer 3 paul-soporan - last PR Aug 2024
lookup maintainer 4 larixer - last PR Sep 2024

Steps to reproduce

Run https://github.com/nodejs/citgm/actions/workflows/test-module.yml

Module to test: @yarnpkg/cli
CITGM repository to checkout: nodejs/citgm
CITGM GitHub ref to checkout: main

Result

Fails all current variants:

Node.js npm macos ubuntu windows
22.23.3 10.9.9 FAIL FAIL PASS
24.21.0 11.19.0 PASS PASS PASS
26.10.0 11.19.1 PASS PASS FAIL

Logs

Captured log
Run node bin/citgm.js @yarnpkg/cli
info: starting            | @yarnpkg/cli
info: lookup              | @yarnpkg/cli
info: lookup-found        | @yarnpkg/cli
info: @yarnpkg/cli lookup-replace| https://github.com/yarnpkg/berry/archive/HEAD.tar.gz
info: @yarnpkg/cli yarn:  | Downloading project: https://github.com/yarnpkg/berry/archive/HEAD.tar.gz
info: @yarnpkg/cli npm:   | Project downloaded HEAD.tar.gz
info: @yarnpkg/cli yarn:  | yarn install started
info: @yarnpkg/cli yarn:  | yarn install successfully completed
info: @yarnpkg/cli yarn:  | test suite started
error: failure             | The canary is dead:
error: failing module(s)   |
error: module name:        | @yarnpkg/cli
error: version:            |
error: error:              | The canary is dead:
error: error:              | undefined➤ YN0000: · Yarn 4.18.1-dev
error:                     | ➤ YN0000: ┌ Resolution step
error:                     | ::group::Resolution step
error:                     | ::endgroup::
error:                     | ➤ YN0000: └ Completed in 0s 264ms
error:                     | ➤ YN0000: ┌ Post-resolution validation
error:                     | ::group::Post-resolution validation
error:                     | ➤ YN0060: │ eslint is listed by your project with version 9.20.1 (pa9c2fa), which doesn't satisfy what eslint-plugin-arca and other dependencies request (but they have non-overlapping ranges!).
error:                     | ➤ YN0060: │ eslint is listed by your project with version 9.20.1 (pbf2700), which doesn't satisfy what eslint-plugin-arca (via @yarnpkg/eslint-config) and other dependencies request (but they have non-overlapping ranges!).
error:                     | ➤ YN0060: │ monaco-editor is listed by your project with version 0.24.0 (pd2ce98), which doesn't satisfy what @monaco-editor/react requests (^0.25.0).
error:                     | ➤ YN0060: │ react is listed by your project with version 19.1.0 (pee9f64), which doesn't satisfy what react-select-virtualized and other dependencies request (but they have non-overlapping ranges!).
error:                     | ➤ YN0060: │ react-dom is listed by your project with version 19.1.0 (p70f303), which doesn't satisfy what react-select-virtualized and other dependencies request (^18.3.1).
error:                     | ➤ YN0060: │ typescript is listed by your project with version 5.9.2 (p5827dc), which doesn't satisfy what typedoc and other dependencies request (~5.0.0 || ~5.1.0 || ~5.2.0 || ~5.3.0).
error:                     | ➤ YN0086: │ Some peer dependencies are incorrectly met by your project; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code.
error:                     | ➤ YN0086: │ Some peer dependencies are incorrectly met by dependencies; run yarn explain peer-requirements for details.
error:                     | ::endgroup::
error:                     | ➤ YN0000: └ Completed
error:                     | ➤ YN0000: ┌ Fetch step
error:                     | ::group::Fetch step
error:                     | ::endgroup::
error:                     | ➤ YN0000: └ Completed in 0s 380ms
error:                     | ➤ YN0000: ┌ Link step
error:                     | ::group::Link step
error:                     | ➤ YN0092: │ ESM support for PnP uses the experimental loader API and is therefore experimental
error:                     | ::endgroup::
error:                     | ➤ YN0000: └ Completed in 1s 272ms
error:                     | ➤ YN0000: · Done with warnings in 2s 171ms
error:                     | ➤ YN0000: ┌ Building the CLI
error:                     | ::group::Building the CLI
error:                     | ➤ YN0000: │ ../yarnpkg-core/sources/miscUtils.ts:336:33
error:                     | ➤ YN0000: │    ↳ Using direct eval with a bundler is not recommended and may cause problems
error:                     | ➤ YN0000: │ ../yarnpkg-core/sources/miscUtils.ts:357:26
error:                     | ➤ YN0000: │    ↳ Using direct eval with a bundler is not recommended and may cause problems
error:                     | ::endgroup::
error:                     | ➤ YN0000: └ Completed in 5s 3ms
error:                     |
error:                     | ➤ YN0000: ✓ Done building the CLI!
error:                     | ➤ YN0000: ? Bundle path: /tmp/322cf14e/@yarnpkg/cli/packages/yarnpkg-cli/bundles/yarn.js
error:                     | ➤ YN0000: ? Bundle size: 8.62 MiB
error:                     | ➤ YN0000: ? Bundle version: 4.18.1
error:                     |
error:                     | ➤ YN0000: → @yarnpkg/plugin-essentials
error:                     | ➤ YN0000: → @yarnpkg/plugin-catalog
error:                     | ➤ YN0000: → @yarnpkg/plugin-compat
error:                     | ➤ YN0000: → @yarnpkg/plugin-constraints
error:                     | ➤ YN0000: → @yarnpkg/plugin-dlx
error:                     | ➤ YN0000: → @yarnpkg/plugin-exec
error:                     | ➤ YN0000: → @yarnpkg/plugin-file
error:                     | ➤ YN0000: → @yarnpkg/plugin-git
error:                     | ➤ YN0000: → @yarnpkg/plugin-github
error:                     | ➤ YN0000: → @yarnpkg/plugin-http
error:                     | ➤ YN0000: → @yarnpkg/plugin-init
error:                     | ➤ YN0000: → @yarnpkg/plugin-interactive-tools
error:                     | ➤ YN0000: → @yarnpkg/plugin-jsr
error:                     | ➤ YN0000: → @yarnpkg/plugin-link
error:                     | ➤ YN0000: → @yarnpkg/plugin-nm
error:                     | ➤ YN0000: → @yarnpkg/plugin-npm
error:                     | ➤ YN0000: → @yarnpkg/plugin-npm-cli
error:                     | ➤ YN0000: → @yarnpkg/plugin-pack
error:                     | ➤ YN0000: → @yarnpkg/plugin-patch
error:                     | ➤ YN0000: → @yarnpkg/plugin-pnp
error:                     | ➤ YN0000: → @yarnpkg/plugin-pnpm
error:                     | ➤ YN0000: → @yarnpkg/plugin-stage
error:                     | ➤ YN0000: → @yarnpkg/plugin-typescript
error:                     | ➤ YN0000: → @yarnpkg/plugin-version
error:                     | ➤ YN0000: → @yarnpkg/plugin-workspace-tools
error:                     |
error:                     |
error:                     | Oops! Something went wrong! :(
error:                     |
error:                     | ESLint: 9.20.1
error:                     |
error:                     | TypeError: Cannot convert undefined or null to object
error:                     | at loadConfigFile (/tmp/322cf14e/@yarnpkg/cli/.yarn/__virtual__/eslint-virtual-5255edd464/0/cache/eslint-npm-9.20.1-5c3419cdfc-b1d870135c.zip/node_modules/eslint/lib/config/config-loader.js:156:30)
error:                     | at async ConfigLoader.calculateConfigArray (/tmp/322cf14e/@yarnpkg/cli/.yarn/__virtual__/eslint-virtual-5255edd464/0/cache/eslint-npm-9.20.1-5c3419cdfc-b1d870135c.zip/node_modules/eslint/lib/config/config-loader.js:500:32)
error:                     | at async #calculateConfigArray (/tmp/322cf14e/@yarnpkg/cli/.yarn/__virtual__/eslint-virtual-5255edd464/0/cache/eslint-npm-9.20.1-5c3419cdfc-b1d870135c.zip/node_modules/eslint/lib/config/config-loader.js:663:29)
error:                     | at async entryFilter (/tmp/322cf14e/@yarnpkg/cli/.yarn/__virtual__/eslint-virtual-5255edd464/0/cache/eslint-npm-9.20.1-5c3419cdfc-b1d870135c.zip/node_modules/eslint/lib/eslint/eslint-helpers.js:281:33)
error:                     | at async NodeHfs.<anonymous> (file:///tmp/322cf14e/@yarnpkg/cli/.yarn/cache/@humanfs-core-npm-0.19.1-e2e7aaeb6e-270d936be4.zip/node_modules/@humanfs/core/src/hfs.js:574:24)
error:                     | at async NodeHfs.walk (file:///tmp/322cf14e/@yarnpkg/cli/.yarn/cache/@humanfs-core-npm-0.19.1-e2e7aaeb6e-270d936be4.zip/node_modules/@humanfs/core/src/hfs.js:614:3)
error:                     | at async globSearch (/tmp/322cf14e/@yarnpkg/cli/.yarn/__virtual__/eslint-virtual-5255edd464/0/cache/eslint-npm-9.20.1-5c3419cdfc-b1d870135c.zip/node_modules/eslint/lib/eslint/eslint-helpers.js:323:26)
error:                     | at async Promise.allSettled (index 0)
error:                     | at async globMultiSearch (/tmp/322cf14e/@yarnpkg/cli/.yarn/__virtual__/eslint-virtual-5255edd464/0/cache/eslint-npm-9.20.1-5c3419cdfc-b1d870135c.zip/node_modules/eslint/lib/eslint/eslint-helpers.js:408:21)
error:                     | at async findFiles (/tmp/322cf14e/@yarnpkg/cli/.yarn/__virtual__/eslint-virtual-5255edd464/0/cache/eslint-npm-9.20.1-5c3419cdfc-b1d870135c.zip/node_modules/eslint/lib/eslint/eslint-helpers.js:587:27)
error: done                | The smoke test has failed.
info: duration            | test duration: 48608ms
Error: Process completed with exit code 1.

References

https://github.com/nodejs/citgm/blob/4d3d256ce02499dba3ee2b725b2ee6b0d7a51988/lib/lookup.json#L29-L45

cc: @arcanis @merceyz @paul-soporan @larixer

Suggestion

Add skip <24 to lookup config.

win32 is already being skipped in the config.

Lingua principale
JavaScript
Stelle
606
Fork
159
Merge medio
3g 1h
PR unite (30g)
21

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nodejs/citgm

Tutte le issue di nodejs/citgm

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.