You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
starting ungit 1.5.30+4d147daa via command line gives an error:
$ ungit
node:internal/modules/cjs/loader:1194
throw new ERR_REQUIRE_ESM(filename, true);
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /usr/local/lib/node_modules/ungit/node_modules/yargs/index.mjs not supported.
Instead change the require of /usr/local/lib/node_modules/ungit/node_modules/yargs/index.mjs to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/usr/local/lib/node_modules/ungit/source/config.js:7:15)
at Object.<anonymous> (/usr/local/lib/node_modules/ungit/bin/ungit:5:16) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v18.19.1
$
I don't know if this will help you, but I had the same error - I was running an old version of node (also v18.*). Upgraded to a recent version, and all worked normally.
Activity
DaveChild commentedon Aug 31, 2026
I don't know if this will help you, but I had the same error - I was running an old version of node (also v18.*). Upgraded to a recent version, and all worked normally.
f4eru commentedon Sep 1, 2026
Yes it seems linuxmint is supplied by default with those older libs.
Thanks, updated that, it works.
how to force the install of the latest version :
sudo apt install npm nodejssudo npm -g install nsudo n install latestsudo npm install -g npm