Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » [Solved] Project build failure due to Node.js v20.13.1. Missing yargs-parser?(Node.js v20.13.1  ELIFECYCLE  Command failed with exit code 1.)
[Solved] Project build failure due to Node.js v20.13.1. Missing yargs-parser? [message #1866240] Thu, 23 May 2024 05:47 Go to next message
Eclipse UserFriend
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

Re: Project build failure due to Node.js v20.13.1. Missing yargs-parser? [message #1866285 is a reply to message #1866240] Fri, 24 May 2024 15:03 Go to previous messageGo to next message
Eclipse UserFriend
Hi there,

I finally solved it by uninstalling and then reinstalling nodejs, npm and pnpm.

Cheers,

JD
Re: Project build failure due to Node.js v20.13.1. Missing yargs-parser? [message #1866309 is a reply to message #1866285] Sun, 26 May 2024 18:36 Go to previous message
Eclipse UserFriend
I was having similar errors and fixing it by using pnpm 8 instead of pnpm 9
Previous Topic:Form-based authentication on production environment
Next Topic:Open a maximized form from the outline
Goto Forum:
  


Current Time: Mon Jun 23 21:56:16 EDT 2025

Powered by FUDForum. Page generated in 0.14190 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top