Headless server fails to start in 1.0.165

I just freshly installed installed joplin terminal through the recommended command
NPM_CONFIG_PREFIX=~/.joplin-bin npm install -g joplin

This installed joplin 1.0.165 (prod). I then tried to launch a headless server like so:
.joplin-bin/bin/joplin server start

That resulted in the following error message:

Cannot find module 'chokidar'
Require stack:
- /home/someuser/.joplin-bin/lib/node_modules/joplin/lib/services/ExternalEditWatcher.js
- /home/someuser/.joplin-bin/lib/node_modules/joplin/lib/services/rest/actionApi.desktop.js
- /home/someuser/.joplin-bin/lib/node_modules/joplin/lib/ClipperServer.js
- /home/someuser/.joplin-bin/lib/node_modules/joplin/command-server.js
- /home/someuser/.joplin-bin/lib/node_modules/joplin/app.js
- /home/someuser/.joplin-bin/lib/node_modules/joplin/main.js

The same issue did not use to occur one version prior, which I verified by installing another joplin
NPM_CONFIG_PREFIX=~/.joplin-bin npm install -g joplin@1.0.164
On that version the server launches as expected.

I am using Ubuntu 18.04.4 LTS.


I do not know if you are aware but @laurent has raised a bug issue on GitHub as a result of your post.

1 Like