Home / GitHub Page

Trouble Setting Up Project

When I do npm install i get the following error:
npm install

Joplin@1.0.216 postinstall /home/arsh/openSource/joplin/ElectronClient
npm run build && gulp electronRebuild

Joplin@1.0.216 build /home/arsh/openSource/joplin/ElectronClient
patch-package --patch-dir …/patches && gulp build

patch-package 6.2.0
Applying patches…
htmlparser2@4.1.0 :heavy_check_mark:
sax@1.2.4 :heavy_check_mark:
[18:27:12] Using gulpfile ~/openSource/joplin/ElectronClient/gulpfile.js
[18:27:12] Starting ‘build’…
[18:27:12] Starting ‘compileScripts’…
[18:27:12] Starting ‘compilePackageInfo’…
[18:27:12] Starting ‘copyPluginAssets’…
[18:27:12] Starting ‘copyTinyMceLangs’…
[18:27:12] Starting ‘copyLib’…
Copying to /home/arsh/openSource/joplin/ElectronClient/tools/…/gui/note-viewer/pluginAssets
Copying /home/arsh/openSource/joplin/ElectronClient/tools/…/…/Modules/TinyMCE/langs => /home/arsh/openSource/joplin/ElectronClient/tools/…/node_modules/tinymce/langs
[18:27:12] Finished ‘compileScripts’ after 19 ms
[18:27:12] Finished ‘compilePackageInfo’ after 20 ms
[18:27:12] Finished ‘copyLib’ after 56 ms
Copying to /home/arsh/openSource/joplin/ElectronClient/tools/…/pluginAssets
[18:27:12] Finished ‘copyTinyMceLangs’ after 79 ms
[18:27:12] Finished ‘copyPluginAssets’ after 85 ms
[18:27:12] Finished ‘build’ after 87 ms
[18:27:13] Using gulpfile ~/openSource/joplin/ElectronClient/gulpfile.js
[18:27:13] Starting ‘electronRebuild’…
Running: “/home/arsh/openSource/joplin/ElectronClient/tools/…/node_modules/.bin/electron-rebuild”
[18:27:14] ‘electronRebuild’ errored after 1.12 s
[18:27:14] Error: Command failed: “/home/arsh/openSource/joplin/ElectronClient/tools/…/node_modules/.bin/electron-rebuild”

  • Searching dependency tree
    :heavy_multiplication_x: Rebuild Failed

An unhandled error occurred inside electron-rebuild
make: Entering directory ‘/home/arsh/openSource/joplin/ElectronClient/node_modules/sqlite3/build’
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3300100/sqlite3.c
/bin/sh: 1: python: not found
make: *** [deps/action_before_build.target.mk:13: Release/obj/gen/sqlite-autoconf-3300100/sqlite3.c] Error 127
make: Leaving directory ‘/home/arsh/openSource/joplin/ElectronClient/node_modules/sqlite3/build’
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/arsh/openSource/joplin/ElectronClient/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:310:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 5.4.0-31-generic
gyp ERR! command “/usr/bin/node” “/home/arsh/openSource/joplin/ElectronClient/node_modules/.bin/node-gyp” “rebuild” “–target=8.2.5” “–arch=x64” “–dist-url=https://www.electronjs.org/headers” “–build-from-source” “–module_name=node_sqlite3” “–module_path=/home/arsh/openSource/joplin/ElectronClient/node_modules/sqlite3/lib/binding/electron-v8.2-linux-x64” “–host=https://mapbox-node-binary.s3.amazonaws.com” “–remote_path=./{name}/v4.1.1/{toolset}/” “–package_name=electron-v8.2-linux-x64.tar.gz”
gyp ERR! cwd /home/arsh/openSource/joplin/ElectronClient/node_modules/sqlite3
gyp ERR! node -v v12.16.3
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok

Failed with exit code: 1

Error: make: Entering directory ‘/home/arsh/openSource/joplin/ElectronClient/node_modules/sqlite3/build’
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3300100/sqlite3.c
/bin/sh: 1: python: not found
make: *** [deps/action_before_build.target.mk:13: Release/obj/gen/sqlite-autoconf-3300100/sqlite3.c] Error 127
make: Leaving directory ‘/home/arsh/openSource/joplin/ElectronClient/node_modules/sqlite3/build’
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/arsh/openSource/joplin/ElectronClient/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:310:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 5.4.0-31-generic
gyp ERR! command “/usr/bin/node” “/home/arsh/openSource/joplin/ElectronClient/node_modules/.bin/node-gyp” “rebuild” “–target=8.2.5” “–arch=x64” “–dist-url=https://www.electronjs.org/headers” “–build-from-source” “–module_name=node_sqlite3” “–module_path=/home/arsh/openSource/joplin/ElectronClient/node_modules/sqlite3/lib/binding/electron-v8.2-linux-x64” “–host=https://mapbox-node-binary.s3.amazonaws.com” “–remote_path=./{name}/v4.1.1/{toolset}/” “–package_name=electron-v8.2-linux-x64.tar.gz”
gyp ERR! cwd /home/arsh/openSource/joplin/ElectronClient/node_modules/sqlite3
gyp ERR! node -v v12.16.3
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok

Failed with exit code: 1
at SafeSubscriber._error (/home/arsh/openSource/joplin/ElectronClient/node_modules/spawn-rx/lib/src/index.js:267:84)
at SafeSubscriber.__tryOrUnsub (/home/arsh/openSource/joplin/ElectronClient/node_modules/rxjs/internal/Subscriber.js:205:16)
at SafeSubscriber.error (/home/arsh/openSource/joplin/ElectronClient/node_modules/rxjs/internal/Subscriber.js:156:26)
at Subscriber._error (/home/arsh/openSource/joplin/ElectronClient/node_modules/rxjs/internal/Subscriber.js:92:26)
at Subscriber.error (/home/arsh/openSource/joplin/ElectronClient/node_modules/rxjs/internal/Subscriber.js:72:18)
at MapSubscriber.Subscriber._error (/home/arsh/openSource/joplin/ElectronClient/node_modules/rxjs/internal/Subscriber.js:92:26)
at MapSubscriber.Subscriber.error (/home/arsh/openSource/joplin/ElectronClient/node_modules/rxjs/internal/Subscriber.js:72:18)
at SafeSubscriber._next (/home/arsh/openSource/joplin/ElectronClient/node_modules/spawn-rx/lib/src/index.js:242:65)
at SafeSubscriber.__tryOrUnsub (/home/arsh/openSource/joplin/ElectronClient/node_modules/rxjs/internal/Subscriber.js:205:16)
at SafeSubscriber.next (/home/arsh/openSource/joplin/ElectronClient/node_modules/rxjs/internal/Subscriber.js:143:22)

at ChildProcess.exithandler (child_process.js:303:12)
at ChildProcess.emit (events.js:310:20)
at ChildProcess.EventEmitter.emit (domain.js:505:15)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Joplin@1.0.216 postinstall: npm run build && gulp electronRebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Joplin@1.0.216 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/arsh/.npm/_logs/2020-05-26T12_57_14_517Z-debug.log

Seem like a root cause

1 Like

But I do have python installed on my machine.

Could you please help me identify why it can’t find python?

I’m not a linux expert but for starters what does which python return? Or python --version?

I’ve got Python 3.8