Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto Apto para principiantes
#1,164 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@MikeMcC399 ya está trabajando en esto.

Desde el 20/10/2026.

  • #1205 de @MikeMcC399 — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
78/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript, node.js
Área
testing

Línea de trabajo

El cambio está en lib/lookup.json de nodejs/citgm, en la entrada @yarnpkg/cli alrededor de las líneas 29-41; lee el esquema de lookup y la sintaxis de skip en el README o la documentación de citgm para confirmar cómo se expresan las condiciones de plataforma y versión. Añade la condición de skip sugerida (<24 y win32) a esa entrada, y luego ejecuta node bin/citgm.js @yarnpkg/cli o los tests de lookup para confirmar que la entrada se analiza correctamente y que el módulo se omite en las variantes que fallan. Listo cuando la lista de skip de la entrada coincida con las filas de la matriz que fallan (Node 22 macos/ubuntu, Node 26 windows) y no cambien otras entradas.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
JavaScript
Estrellas
606
Forks
159
Merge medio
2 d 19 h
PR fusionados (30 d)
20

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de nodejs/citgm

Todos los issues de nodejs/citgm

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.