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```
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
|
"@yarnpkg/cli": { |
|
"envVar": { "TEST_IGNORE_TIMEOUT_FAILURES": true }, |
|
"install": ["install", "--mode", "skip-build"], |
|
"maintainers": ["arcanis", "merceyz", "paul-soporan", "larixer"], |
|
"head": true, |
|
"repo": "https://github.com/yarnpkg/berry", |
|
"scripts": [ |
|
"build:cli --no-minify", |
|
"typecheck:all", |
|
"test:lint", |
|
"test:unit --testPathIgnorePatterns ./packages/plugin-patch/tests/diffFolders.test.ts", |
|
"test:integration sources/basic.test sources/pnp.test sources/pnp-esm.test sources/require.test sources/https.test sources/exports.test sources/commands/add.test" |
|
], |
cc: @arcanis @merceyz @paul-soporan @larixer
Suggestion
Add skip <24 & win32 to lookup config.
Situation
Running
@yarnpkg/clifails inmacos/ubuntu
Node.js 22
TypeError: Cannot convert undefined or null to objectwindows
Node.js 26
Error: error:1C8000BA:Provider routines::entropy source strength too weak```Steps to reproduce
Run https://github.com/nodejs/citgm/actions/workflows/test-module.yml
Module to test:
@yarnpkg/cliCITGM repository to checkout:
nodejs/citgmCITGM GitHub ref to checkout:
mainResult
Fails all current variants:
Logs
Captured log
References
citgm/lib/lookup.json
Lines 29 to 41 in 4d3d256
cc: @arcanis @merceyz @paul-soporan @larixer
Suggestion
Add
skip <24 & win32to lookup config.