[Solved] Project build failure due to Node.js v20.13.1. Missing yargs-parser? [message #1866240] |
Thu, 23 May 2024 05:47  |
Eclipse User |
|
|
|
Hello there everyone,
I use the Eclipse IDE and from time to time, my project just fails to run for some bizarre reason. The latest just occurred this morning when I tried to run my project from inside the Eclipse IDE. The build failed and the Eclipse console show this:
Running 'pnpm install' in /home/jd/eclipse-scout-ygapp-workspace/ygapp
Scope: all 2 workspace projects
Lockfile is up to date, resolution step is skipped
Already up to date
Done in 1.2s
pnpm install finished successfully!
Running 'pnpm build:dev:watch'
> @ygapp/ui@1.0.0-SNAPSHOT build:dev:watch /home/jd/eclipse-scout-ygapp-workspace/ygapp/ygapp.ui.html
> scout-scripts build:dev:watch
node:internal/modules/cjs/loader:1148
throw err;
^
Error: Cannot find module 'yargs-parser'
Require stack:
- /home/jd/eclipse-scout-ygapp-workspace/ygapp/node_modules/.pnpm/@eclipse-scout+cli@23.2.15/node_modules/@eclipse-scout/cli/bin/scout-scripts.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Module._load (node:internal/modules/cjs/loader:986:27)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/home/jd/eclipse-scout-ygapp-workspace/ygapp/node_modules/.pnpm/@eclipse-scout+cli@23.2.15/node_modules/@eclipse-scout/cli/bin/scout-scripts.js:25:16)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/jd/eclipse-scout-ygapp-workspace/ygapp/node_modules/.pnpm/@eclipse-scout+cli@23.2.15/node_modules/@eclipse-scout/cli/bin/scout-scripts.js'
]
}
Node.js v20.13.1
ELIFECYCLE Command failed with exit code 1.
I can see that it is complaining that it cannot find yargs-parser. I don't know why because I've never used or opened the file directly and besides everything was working last night!
I would really appreciate your help in resolving this problem.
Thanks a million,
JD
[Updated on: Fri, 24 May 2024 15:04] by Moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.14190 seconds