nody-greeter icon indicating copy to clipboard operation
nody-greeter copied to clipboard

Getting "Error: Cannot find module 'yargs'" at runtime on seat0 logs

Open D3vil0p3r opened this issue 8 months ago • 1 comments

Environment

  • OS: Arch Linux
  • nody-greeter version: 1.5.2

Bug description

@JezerM I installed nody-greeter by AUR package. After the install, when I run it by using the default gruvbox theme, at reboot nothing happens. I checked all LightDM logs and the only log file with errors was the one related to the seat0 (/var/log/lightdm/seat0-greeter.log) (so related to the nody-greeter). It produced the following error:

/etc/lightdm/Xgreeter: line 5: xsetroot: command not found
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module 'yargs'
Require stack:
- /opt/nody-greeter/resources/app.asar/js/index.js
- 
    at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at Object.<anonymous> (/opt/nody-greeter/resources/app.asar/js/index.js:30:33)
    at Module._compile (node:internal/modules/cjs/loader:1116:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
[1097:1007/101325.882504:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
[1008:1007/101326.135672:ERROR:object_proxy.cc(642)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”
[1008:1007/101326.135701:ERROR:select_file_dialog_impl_portal.cc(243)] Failed to read portal version property

I tried to install yargs module by npm install yargs but I'm continuing to get the same result.

Steps to reproduce

  • On a clean Arch Linux environment with an AUR helper (like yay or paru) or by using Chaotic AUR repository, install [nody-greeter(https://aur.archlinux.org/packages/nody-greeter) package
  • Edit /etc/lightdm/lightdm.conf and add nody-greeter in the greeter-session field
  • sudo systemctl enable lightdm
  • Reboot
  • Nothing should happen
  • Check logs in /var/log/lightdm/seat0-greeter.log

Expected behavior

Theme appearing at login time.

D3vil0p3r avatar Oct 07 '23 09:10 D3vil0p3r