Yarn should come pre-installed alongside NodeJS #1

Closed
opened 2024-07-27 20:19:46 +00:00 by marc · 0 comments
Owner

Since 8c9aad6be3, NodeJS is part of the preinstalled tooling. yarn should be part of that bundle since it's the tool of choice for projects.

Trying to install it as part of workflows using ubuntu-2204 crashes when running corepack enable, which should in principle do the thing:

> corepack enable

node:internal/modules/cjs/loader:1146
  throw err;
  ^
Error: Cannot find module './lib/corepack.cjs'
Require stack:
- /usr/bin/corepack
    at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
    at Module._load (node:internal/modules/cjs/loader:984:27)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/usr/bin/corepack:3:1)
    at Module._compile (node:internal/modules/cjs/loader:1369:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
    at Module.load (node:internal/modules/cjs/loader:1206:32)
    at Module._load (node:internal/modules/cjs/loader:1022:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/usr/bin/corepack' ]
}
Node.js v20.12.2
Since 8c9aad6be33e2d8ede0af7d84007128d41528374, NodeJS is part of the preinstalled tooling. `yarn` should be part of that bundle since it's the tool of choice for projects. Trying to install it as part of workflows using `ubuntu-2204` crashes when running `corepack enable`, which _should_ in principle do the thing: ``` > corepack enable node:internal/modules/cjs/loader:1146 throw err; ^ Error: Cannot find module './lib/corepack.cjs' Require stack: - /usr/bin/corepack at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15) at Module._load (node:internal/modules/cjs/loader:984:27) at Module.require (node:internal/modules/cjs/loader:1231:19) at require (node:internal/modules/helpers:179:18) at Object.<anonymous> (/usr/bin/corepack:3:1) at Module._compile (node:internal/modules/cjs/loader:1369:14) at Module._extensions..js (node:internal/modules/cjs/loader:1427:10) at Module.load (node:internal/modules/cjs/loader:1206:32) at Module._load (node:internal/modules/cjs/loader:1022:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) { code: 'MODULE_NOT_FOUND', requireStack: [ '/usr/bin/corepack' ] } Node.js v20.12.2 ```
marc closed this issue 2024-11-07 02:32:48 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: spadinastan/runner-images#1
No description provided.