Terminal CLI app won't run after Joplin upgrade

I've been happily using the Joplin Terminal CLI as part of a bash script workflow that automatically downloads a bunch of notes and processes them in a markdown editor. It worked great until recently after upgrading to Joplin 2.10.18 on desktop. Even after uninstalling/reinstalling, I get:

/Users/sprague/.joplin-bin/lib/node_modules/joplin/node_modules/sharp/lib/sharp.js:34
  throw new Error(help.join('\n'));
  ^

Error:
Something went wrong installing the "sharp" module

Cannot find module '../build/Release/sharp-darwin-arm64v8.node'
Require stack:
- /Users/sprague/.joplin-bin/lib/node_modules/joplin/node_modules/sharp/lib/sharp.js
- /Users/sprague/.joplin-bin/lib/node_modules/joplin/node_modules/sharp/lib/constructor.js
- /Users/sprague/.joplin-bin/lib/node_modules/joplin/node_modules/sharp/lib/index.js
- /Users/sprague/.joplin-bin/lib/node_modules/joplin/main.js

Possible solutions:
- Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"
- Install for the current darwin-arm64v8 runtime: "npm install --platform=darwin --arch=arm64v8 sharp"
- Consult the installation documentation: https://sharp.pixelplumbing.com/install
    at Object.<anonymous> (/Users/sprague/.joplin-bin/lib/node_modules/joplin/node_modules/sharp/lib/sharp.js:34:9)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/Users/sprague/.joplin-bin/lib/node_modules/joplin/node_modules/sharp/lib/constructor.js:8:1)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)

Any suggestions?

Mac OS 13.3
Joplin 2.10.19 (prod, darwin)

More details on github # 8145

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.