Skip to content

Add instructions on how to run yarn if it complains of MODULE_NOT_FOUND#1341

Open
anlsh wants to merge 1 commit into
GrapheneOS:mainfrom
anlsh:main
Open

Add instructions on how to run yarn if it complains of MODULE_NOT_FOUND#1341
anlsh wants to merge 1 commit into
GrapheneOS:mainfrom
anlsh:main

Conversation

@anlsh

@anlsh anlsh commented Dec 14, 2025

Copy link
Copy Markdown

The ubuntu system package appears to be broken / outdated somehow: when I try to run the yarn command in build.html

$ yarnpkg --cwd vendor/adevtool/ install
node:internal/modules/cjs/loader:1424
  throw err;
  ^

Error: Cannot find module '@babel/runtime/helpers/interopRequireDefault'
Require stack:
- /usr/share/nodejs/yarn/lib/cli/index.js
- /usr/share/nodejs/yarn/bin/yarn.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1421:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1059:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1064:22)
    at Module._load (node:internal/modules/cjs/loader:1227:37)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)
    at Module.require (node:internal/modules/cjs/loader:1504:12)
    at require (node:internal/modules/helpers:152:16)
    at Object.<anonymous> (/usr/share/nodejs/yarn/lib/cli/index.js:3:30)
    at Module._compile (node:internal/modules/cjs/loader:1761:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/share/nodejs/yarn/lib/cli/index.js',
    '/usr/share/nodejs/yarn/bin/yarn.js'
  ]
}

Node.js v24.11.1

It seems like the npm version of the utility fixes this, so recommend that.

Note: perhaps the installation instructions should simply always recommend installing the package via npm?

The ubuntu system package appears to be broken / outdated somehow: when
I try to run the yarn command in build.html

```
$ yarnpkg --cwd vendor/adevtool/ install
node:internal/modules/cjs/loader:1424
  throw err;
  ^

Error: Cannot find module '@babel/runtime/helpers/interopRequireDefault'
Require stack:
- /usr/share/nodejs/yarn/lib/cli/index.js
- /usr/share/nodejs/yarn/bin/yarn.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1421:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1059:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1064:22)
    at Module._load (node:internal/modules/cjs/loader:1227:37)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)
    at Module.require (node:internal/modules/cjs/loader:1504:12)
    at require (node:internal/modules/helpers:152:16)
    at Object.<anonymous> (/usr/share/nodejs/yarn/lib/cli/index.js:3:30)
    at Module._compile (node:internal/modules/cjs/loader:1761:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/share/nodejs/yarn/lib/cli/index.js',
    '/usr/share/nodejs/yarn/bin/yarn.js'
  ]
}

Node.js v24.11.1
```

It seems like the `npm` version of the utility fixes this, so recommend
that.

Note: perhaps the installation instructions should simply always
recommend installing the package via npm?
@thestinger thestinger force-pushed the main branch 2 times, most recently from 2118467 to 7e60dbd Compare December 15, 2025 07:15
@thestinger thestinger force-pushed the main branch 7 times, most recently from d97c2bd to 029d722 Compare December 24, 2025 19:10
@thestinger thestinger force-pushed the main branch 7 times, most recently from 78d5bc2 to bf9dbac Compare January 10, 2026 03:33
@thestinger thestinger force-pushed the main branch 2 times, most recently from 41361b2 to 9e01e76 Compare January 20, 2026 23:28
@thestinger thestinger force-pushed the main branch 5 times, most recently from 654b8f1 to f531688 Compare January 28, 2026 23:05
@thestinger thestinger force-pushed the main branch 6 times, most recently from c1d5d93 to 97a63f3 Compare February 5, 2026 08:24
@thestinger thestinger force-pushed the main branch 4 times, most recently from aaddf37 to 87e56b0 Compare February 22, 2026 23:05
@thestinger thestinger force-pushed the main branch 2 times, most recently from 59ef0ae to 7d872a6 Compare March 4, 2026 19:01
@thestinger thestinger force-pushed the main branch 2 times, most recently from b05f646 to a219266 Compare March 27, 2026 18:28
@thestinger thestinger force-pushed the main branch 6 times, most recently from 7115648 to e97e673 Compare May 7, 2026 00:04
@thestinger thestinger force-pushed the main branch 6 times, most recently from 37dcbaa to b1a94b4 Compare May 13, 2026 21:39
@thestinger thestinger force-pushed the main branch 3 times, most recently from 270d5b4 to cee1c15 Compare May 24, 2026 03:51
@thestinger thestinger force-pushed the main branch 4 times, most recently from 41be4b8 to e5e2de5 Compare June 9, 2026 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant