alfredopalhares / arch-pkgbuilds

Alfredo's Arch Linux PKGBUILDs
38 stars 23 forks source link

Joplin CLI crashes at startup #126

Closed mixin82 closed 10 months ago

mixin82 commented 10 months ago

Issue reported here (I've just tried to reproduce it). Also mentioned in #123. Running joplin after a build fails at startup:

% joplin
/usr/share/joplin/node_modules/sharp/lib/sharp.js:37
  throw new Error(help.join('\n'));
  ^

Error: 
Something went wrong installing the "sharp" module

libvips-cpp.so.42: cannot open shared object file: No such file or directory

Possible solutions:
- Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"
- Install for the current linux-x64 runtime: "npm install --platform=linux --arch=x64 sharp"
- Consult the installation documentation: https://sharp.pixelplumbing.com/install
    at Object.<anonymous> (/usr/share/joplin/node_modules/sharp/lib/sharp.js:37:9)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/usr/share/joplin/node_modules/sharp/lib/constructor.js:11:1)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)

Node.js v21.2.0
mixin82 commented 10 months ago

libvips seems to be needed for joplin to start (while joplin-desktop starts fine without). It is mentioned in upstream here as a possible dependency for Apple Silicon, even though there are other people (non Apple) that raised a similar issues. To reproduce, I've tried to run makepkg -sir and expected libvips to be removed, which it didn't (probably because makepkg checks only the top level dependencies (see here). Still libvips is not a dependency of any joplin packages, so maybe the user has removed it while clearing out orphans? Anyway, I'll create a PR that will set libvips as a dependency of joplin.

alfredopalhares commented 10 months ago

Thank you so much for you research and helpfullness, I only got time to get caugh up with notifications.