electronRebuild error on Linux when running npm install

Hello!

I’ve been following this project for a while and wanted to try to set up local development in order to get familiar with the app and hopefully contribute soon, but after cloning source code, installing the dependencies and running npm install as specified in the build instructions, the command gets stuck at “electronRebuild” and then fails. There seems to be an issue with sqlite but I’m not sure what it is. I’m on a Linux machine.

I can’t post the terminal log in-line due to the body limit on this forum, so here’s a gist.

Any help would be greatly appreciated, thanks in advance!

The first error is this:

make: g++: Command not found

make: *** [Release/obj.target/node_sqlite3/src/backup.o] Error 127

node_sqlite3.target.mk:132: recipe for target 'Release/obj.target/node_sqlite3/src/backup.o' failed

make: Leaving directory '/home/nontempa/IdeaProjects/joplin/ElectronClient/node_modules/sqlite3/build'

So looks like you need to install g++?

1 Like

Well, that sure is embarassing... still kind of new to Linux, thanks a lot though, that worked! :slight_smile:

1 Like

No worries, anyway I'd blame npm for printing 30 pages of useless warnings, and just one line about the actual error :grimacing:

1 Like