Add instructions on how to run yarn if it complains of MODULE_NOT_FOUND#1341
Open
anlsh wants to merge 1 commit into
Open
Add instructions on how to run yarn if it complains of MODULE_NOT_FOUND#1341anlsh wants to merge 1 commit into
anlsh wants to merge 1 commit into
Conversation
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?
2118467 to
7e60dbd
Compare
d97c2bd to
029d722
Compare
78d5bc2 to
bf9dbac
Compare
41361b2 to
9e01e76
Compare
654b8f1 to
f531688
Compare
c1d5d93 to
97a63f3
Compare
aaddf37 to
87e56b0
Compare
59ef0ae to
7d872a6
Compare
b05f646 to
a219266
Compare
7115648 to
e97e673
Compare
37dcbaa to
b1a94b4
Compare
270d5b4 to
cee1c15
Compare
41be4b8 to
e5e2de5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The ubuntu system package appears to be broken / outdated somehow: when I try to run the yarn command in build.html
It seems like the
npmversion of the utility fixes this, so recommend that.Note: perhaps the installation instructions should simply always recommend installing the package via npm?