node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v5.0.1/napi-v6-linux-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for sqlite3@5.0.1 and node@10.23.1 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
make: Verzeichnis „/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3/build“ wird betreten
CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
AR(target) Release/obj.target/../node-addon-api/nothing.a
COPY Release/nothing.a
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3320300/sqlite3.c
/bin/sh: 1: python: not found
make: *** [deps/action_before_build.target.mk:13: Release/obj/gen/sqlite-autoconf-3320300/sqlite3.c] Fehler 127
make: Verzeichnis „/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3/build“ wird verlassen
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/andreas/.npm-global/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.4.0-62-generic
gyp ERR! command "/usr/bin/node" "/home/andreas/.npm-global/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/napi-v6-linux-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/napi-v6-linux-x64" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=6" "--node_napi_label=napi-v6"
gyp ERR! cwd /home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3
gyp ERR! node -v v10.23.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /home/andreas/.npm-global/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/napi-v6-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/napi-v6-linux-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
node-pre-gyp ERR! stack at ChildProcess. (/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:198:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:982:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Linux 5.4.0-62-generic
node-pre-gyp ERR! command "/usr/bin/node" "/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3
node-pre-gyp ERR! node -v v10.23.1
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /home/andreas/.npm-global/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/napi-v6-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/napi-v6-linux-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/joplin/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sqlite3@5.0.1 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@5.0.1 install 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/andreas/.npm/_logs/2021-01-15T14_13_06_729Z-debug.log
And here are the logs (only parts as the complete log is too long):
Summary
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli '/home/andreas/.npm-global/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli '--unsafe-perm',
1 verbose cli 'joplin' ]
2 info using npm@6.14.10
3 info using node@v10.23.1
4 verbose npm-session 26ea973f6ceeaabc
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 200 https://registry.npmjs.org/joplin 493ms
8 http fetch GET 200 https://registry.npmjs.org/joplin/-/joplin-1.6.3.tgz 151ms
9 silly pacote tag manifest for joplin@latest fetched in 749ms
10 timing stage:loadCurrentTree Completed in 11181ms
11 silly install loadIdealTree
...
203 silly removeObsoleteDep removing sqlite3@5.0.0 from the tree as its been replaced by a newer version or is no longer required
...
709 http fetch GET 200 https://registry.npmjs.org/sqlite3 306ms
...
743 http fetch GET 200 https://registry.npmjs.org/sqlite3/-/sqlite3-5.0.1.tgz 657ms
744 silly pacote range manifest for sqlite3@^5.0.0 fetched in 1000ms
745 silly resolveWithNewModule sqlite3@5.0.1 checking installable status
746 silly pacote git manifest for uslug@git+https://github.com/laurent22/uslug.git#emoji-support fetched in 1923ms
747 silly resolveWithNewModule uslug@1.0.4 checking installable status
...
2293 silly decomposeActions unbuild sqlite3@5.0.0
2294 silly decomposeActions remove sqlite3@5.0.0
2295 silly decomposeActions fetch sqlite3@5.0.1
2296 silly decomposeActions extract sqlite3@5.0.1
2297 silly decomposeActions preinstall sqlite3@5.0.1
2298 silly decomposeActions build sqlite3@5.0.1
2299 silly decomposeActions install sqlite3@5.0.1
2300 silly decomposeActions postinstall sqlite3@5.0.1
2301 silly decomposeActions finalize sqlite3@5.0.1
2302 silly decomposeActions refresh-package-json sqlite3@5.0.1
...
2353 silly decomposeActions unbuild joplin@1.5.1
2354 silly decomposeActions remove joplin@1.5.1
2355 silly decomposeActions fetch joplin@1.6.3
2356 silly decomposeActions extract joplin@1.6.3
2357 silly decomposeActions preinstall joplin@1.6.3
2358 silly decomposeActions build joplin@1.6.3
2359 silly decomposeActions install joplin@1.6.3
2360 silly decomposeActions postinstall joplin@1.6.3
2361 silly decomposeActions finalize joplin@1.6.3
2362 silly decomposeActions refresh-package-json joplin@1.6.3
2363 silly install executeActions
2364 silly doSerial global-install 192
2365 verbose correctMkdir /home/andreas/.npm/_locks correctMkdir not in flight; initializing
2366 verbose lock using /home/andreas/.npm/_locks/staging-2bb8e9a879fee8e1.lock for /home/andreas/.npm-global/lib/node_modules/.staging
2367 silly doParallel extract 19
2368 silly extract @joplin/fork-htmlparser2@4.1.15
2369 silly extract @joplin/fork-sax@1.2.19
2370 silly extract @joplin/renderer@1.0.24
2371 silly extract @joplin/turndown@4.0.37
2372 silly extract @joplin/turndown-plugin-gfm@1.0.19
2373 silly extract aws-sdk@2.828.0
2374 silly extract binary-extensions@2.2.0
2375 silly extract jpeg-js@0.4.3
2376 silly extract khroma@1.2.0
2377 silly extract needle@2.6.0
2378 silly extract node-addon-api@3.1.0
2379 silly extract sqlite3@5.0.1
2380 silly extract string-kit@0.11.10
2381 silly extract terminal-kit@1.45.4
2382 silly extract uri-js@4.4.1
2383 silly extract @joplin/lib@1.0.16
2384 silly extract open@7.3.1
2385 silly extract joplin@1.6.3
2386 silly tarball trying aws-sdk@^2.588.0 by hash: sha512-JoDujGdncSIF9ka+XFZjop/7G+fNGucwPwYj7OHYMmFIOV5p7YmqomdbVmH/vIzd988YZz8oLOinWc4jM6vvhg==
2387 silly tarball trying binary-extensions@^2.0.0 by hash: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==
2388 silly tarball trying jpeg-js@^0.4.1 by hash: sha512-ru1HWKek8octvUHFHvE5ZzQ1yAsJmIvRdGWvSoKV52XKyuyYA437QWDttXT8eZXDSbuMpHlLzPDZUPd6idIz+Q==
2389 silly tarball trying khroma@^1.1.0 by hash: sha512-DlKk5y243dujy8fOH02aRnnewLfiHJV0s8aXaVrCohgBf3s7fEAn6gc6LLQ21agODlFZS8ufrn+juu70uCA9Tw==
2390 silly tarball trying needle@^2.2.1 by hash: sha512-KKYdza4heMsEfSWD7VPUIz3zX2XDwOyX2d+geb4vrERZMT5RMU6ujjaD+I5Yr54uZxQ2w6XRTAhHBbSCyovZBg==
2391 silly tarball trying node-addon-api@^3.0.0 by hash: sha512-flmrDNB06LIl5lywUz7YlNGZH/5p0M7W28k8hzd9Lshtdh1wshD2Y+U4h9LD6KObOy1f+fEVdgprPrEymjM5uw==
2392 silly tarball trying sqlite3@^5.0.0 by hash: sha512-kh2lTIcYNfmVcvhVJihsYuPj9U0xzBbh6bmqILO2hkryWSC9RRhzYmkIDtJkJ+d8Kg4wZRJ0T1reyHUEspICfg==
2393 silly tarball trying string-kit@^0.11.9 by hash: sha512-ATVmIpMrqxPFNiNQTnmEeXzt3743O6DubJWh2MiAQV1ifKd4PcCjBcybCdb0ENnPO1T6asORK9nOpygn1BATag==
2394 silly tarball trying terminal-kit@^1.30.0 by hash: sha512-3PUhzFPQhUVuc9i7GtlFgT4hVlc6RHqg5ahblF75He7Emu0841V6yd++Us4prrGXcQpzsWZ2/cPGK9CcQPgA4g==
2395 silly tarball trying uri-js@^4.2.2 by hash: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==
2396 silly tarball trying @joplin/lib@* by hash: sha512-ycJVjYgo3mL75f/PSnlrd7QMTA8m+UX9/Zsv0ioFeyEgfPsCGu3tibBZRKWgtKYPkO3mMPQXeRVQ3XHElT/EGg==
2397 silly tarball trying open@^7.0.4 by hash: sha512-f2wt9DCBKKjlFbjzGb8MOAW8LH8F0mrs1zc7KTjAJ9PZNQbfenzWbNP1VZJvw6ICMG9r14Ah6yfwPn7T7i646A==
2398 silly tarball trying joplin@latest by hash: sha512-9wjC1el//4NNiRl0J8Zew4gu2MLNtYBYflyLfCfjRfOP4YDsDFosUk5aq1+rPRWe9dpnTw/LVUdOksdyep/lUQ==
2399 silly tarball trying @joplin/fork-htmlparser2@^4.1.15 by hash: sha512-WAkf8Pa7910Qf2m4L0KY4Z+FZr0ALaZhG4VrSktOfl80T+VOdaBMkH0JeWJW1/jV9mfU2AA7AVyeWiYhBGzc2w==
2400 silly tarball trying @joplin/fork-sax@^1.2.19 by hash: sha512-rj42u7Hi5QDpjYw4a+j07NR4rdMeKIrrwiJorte57cD6mzEo6JAytZjbl/XGxMrEb/HkZA750sj0HVrCgRz4XA==
2401 silly tarball trying @joplin/renderer@* by hash: sha512-tJ3rxQb/qTshcKk6N74nEdZpOA8sIbqY4GBYsONzxburqiqSaASXDIijEg62Q2hfVmueOE2hK4KsTlHbpx/Tog==
2402 silly tarball trying @joplin/turndown@^4.0.37 by hash: sha512-64RMNpGaSKqClive0MCrTk10HqqLH4COEglbHfS8K6HF9PuU7nsCO71IoD0KLxJSXayQ97Jw0s9QxnFgb2QQ4w==
2403 silly tarball trying @joplin/turndown-plugin-gfm@^1.0.19 by hash: sha512-Mp4RAcUrYLWf8IQ5sDj1R67L9MBfbI9iXq0J4M1YtbMt3lFyhUJPmLAKEeLasWZnI9Hje2UJqTJAWo+D4eNmdQ==
2404 silly extract @joplin/turndown-plugin-gfm@^1.0.19 extracted to /home/andreas/.npm-global/lib/node_modules/.staging/@joplin/turndown-plugin-gfm-6887182d (240ms)
2405 silly extract binary-extensions@^2.0.0 extracted to /home/andreas/.npm-global/lib/node_modules/.staging/binary-extensions-669e705b (240ms)
2406 silly extract @joplin/fork-sax@^1.2.19 extracted to /home/andreas/.npm-global/lib/node_modules/.staging/@joplin/fork-sax-a9192d12 (249ms)
2407 silly extract @joplin/turndown@^4.0.37 extracted to /home/andreas/.npm-global/lib/node_modules/.staging/@joplin/turndown-f4b243f9 (253ms)
2408 silly extract open@^7.0.4 extracted to /home/andreas/.npm-global/lib/node_modules/.staging/open-3afa267e (252ms)
2409 silly extract jpeg-js@^0.4.1 extracted to /home/andreas/.npm-global/lib/node_modules/.staging/jpeg-js-c27481e9 (263ms)
2410 silly extract @joplin/fork-htmlparser2@^4.1.15 extracted to /home/andreas/.npm-global/lib/node_modules/.staging/@joplin/fork-htmlparser2-83d681b9 (328ms)
2411 silly extract string-kit@^0.11.9 extracted to /home/andreas/.npm-global/lib/node_modules/.staging/string-kit-d2638f95 (435ms)
2412 silly extract needle@^2.2.1 extracted to /home/andreas/.npm-global/lib/node_modules/.staging/needle-c0e1f71a (446ms)
2413 silly extract joplin@latest extracted to /home/andreas/.npm-global/lib/node_modules/.staging/joplin-a7a99345 (481ms)
2414 silly extract uri-js@^4.2.2 extracted to /home/andreas/.npm-global/lib/node_modules/.staging/uri-js-98b5e852 (489ms)
2415 silly extract node-addon-api@^3.0.0 extracted to /home/andreas/.npm-global/lib/node_modules/.staging/node-addon-api-54aee3e5 (641ms)
2416 silly extract khroma@^1.1.0 extracted to /home/andreas/.npm-global/lib/node_modules/.staging/khroma-bc3e0384 (721ms)
2417 silly extract sqlite3@^5.0.0 extracted to /home/andreas/.npm-global/lib/node_modules/.staging/sqlite3-ff924918 (769ms)
...
2466 silly unbuild sqlite3@5.0.0
2467 info lifecycle sqlite3@5.0.0~preuninstall: sqlite3@5.0.0
2468 info lifecycle sqlite3@5.0.0~uninstall: sqlite3@5.0.0
2469 verbose unbuild rmStuff sqlite3@5.0.0 from /home/andreas/.npm-global/lib/node_modules
2470 verbose unbuild rmStuff in /home/andreas/.npm-global/lib/node_modules/joplin/node_modules
2471 info lifecycle sqlite3@5.0.0~postuninstall: sqlite3@5.0.0
...
2578 silly remove /home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3
...
2599 silly finalize /home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3
...
2619 silly refresh-package-json /home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3
...
2650 silly preinstall sqlite3@5.0.1
2651 info lifecycle sqlite3@5.0.1~preinstall: sqlite3@5.0.1
...
2723 silly build sqlite3@5.0.1
2724 info linkStuff sqlite3@5.0.1
2725 silly linkStuff sqlite3@5.0.1 has /home/andreas/.npm-global/lib/node_modules/joplin/node_modules as its parent node_modules
2726 silly linkStuff sqlite3@5.0.1 is part of a global install
2727 silly linkStuff sqlite3@5.0.1 is installed into a global node_modules
...
2787 silly install sqlite3@5.0.1
2788 info lifecycle sqlite3@5.0.1~install: sqlite3@5.0.1
2789 verbose lifecycle sqlite3@5.0.1~install: unsafe-perm in lifecycle true
2790 verbose lifecycle sqlite3@5.0.1~install: PATH: /home/andreas/.npm-global/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3/node_modules/.bin:/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/.bin:/home/andreas/.npm-global/lib/node_modules/.bin:/home/andreas/.npm-global/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
2791 verbose lifecycle sqlite3@5.0.1~install: CWD: /home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3
2792 silly lifecycle sqlite3@5.0.1~install: Args: [ '-c', 'node-pre-gyp install --fallback-to-build' ]
2793 silly lifecycle sqlite3@5.0.1~install: Returned: code: 1 signal: null
2794 info lifecycle sqlite3@5.0.1~install: Failed to exec install script
2795 timing action:install Completed in 9914ms
2796 verbose unlock done using /home/andreas/.npm/_locks/staging-2bb8e9a879fee8e1.lock for /home/andreas/.npm-global/lib/node_modules/.staging
2797 timing stage:rollbackFailedOptional Completed in 5253ms
2798 timing stage:runTopLevelLifecycles Completed in 71209ms
2799 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/joplin/node_modules/chokidar/node_modules/fsevents):
2800 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2801 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin
2801 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
2801 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux
2801 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
2802 verbose stack Error: sqlite3@5.0.1 install: node-pre-gyp install --fallback-to-build
2802 verbose stack Exit status 1
2802 verbose stack at EventEmitter. (/home/andreas/.npm-global/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
2802 verbose stack at EventEmitter.emit (events.js:198:13)
2802 verbose stack at ChildProcess. (/home/andreas/.npm-global/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
2802 verbose stack at ChildProcess.emit (events.js:198:13)
2802 verbose stack at maybeClose (internal/child_process.js:982:16)
2802 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
2803 verbose pkgid sqlite3@5.0.1
2804 verbose cwd /home/andreas
2805 verbose Linux 5.4.0-62-generic
2806 verbose argv "/usr/bin/node" "/home/andreas/.npm-global/bin/npm" "install" "-g" "--unsafe-perm" "joplin"
2807 verbose node v10.23.1
2808 verbose npm v6.14.10
2809 error code ELIFECYCLE
2810 error errno 1
2811 error sqlite3@5.0.1 install: node-pre-gyp install --fallback-to-build
2811 error Exit status 1
2812 error Failed at the sqlite3@5.0.1 install script.
2812 error This is probably not a problem with npm. There is likely additional logging output above.
2813 verbose exit [ 1, true ]
Sorry, I read the thread "CLI error updating from 141 to 145" and got by accident his error text.
Now I updated my text (see above).
Please have a look at it.
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v5.0.1/napi-v6-linux-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for sqlite3@5.0.1 and node@10.23.1 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
make: Verzeichnis „/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3/build“ wird betreten
CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
AR(target) Release/obj.target/../node-addon-api/nothing.a
COPY Release/nothing.a
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3320300/sqlite3.c
/bin/sh: 1: python: not found
make: *** [deps/action_before_build.target.mk:13: Release/obj/gen/sqlite-autoconf-3320300/sqlite3.c] Fehler 127
make: Verzeichnis „/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3/build“ wird verlassen
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/andreas/.npm-global/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.4.0-62-generic
gyp ERR! command "/usr/bin/node" "/home/andreas/.npm-global/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/napi-v6-linux-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/napi-v6-linux-x64" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=6" "--node_napi_label=napi-v6"
gyp ERR! cwd /home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3
gyp ERR! node -v v10.23.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /home/andreas/.npm-global/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/napi-v6-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/napi-v6-linux-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
node-pre-gyp ERR! stack at ChildProcess. (/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:198:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:982:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Linux 5.4.0-62-generic
node-pre-gyp ERR! command "/usr/bin/node" "/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3
node-pre-gyp ERR! node -v v10.23.1
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /home/andreas/.npm-global/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/napi-v6-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/andreas/.npm-global/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/napi-v6-linux-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/joplin/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sqlite3@5.0.1 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@5.0.1 install 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/andreas/.npm/_logs/2021-01-16T14_43_45_539Z-debug.log
What I get is that the "Pre-built binaries not found for sqlite3@5.0.1 and node@10.23.1" and therefore a build of it is started but this fails.
But I do not get why it fails. The error message says "/bin/sh: 1: python: not found" but python does exist in my machine.
P.S. I am using Node.js version 10 (as I did interprete it fom the Joplin Termial application page) although there are already much more new versions up to version 15.
Which version should I use?
In between I did several additional tests.
First I installed a virtual machine with Ubuntu 20.10 were I did try to install the Joplin CLI 1.6.3.
I ended up with the same error message when the install of sqlite3@5.0.1 begins (see previous note).
Later I did install a virtual machine with Debian 10 and ther the installation of Joplin 1.6.3 did run through although I had the same remark that the "Pre-built binaries not found for sqlite3@5.0.1 and node@10.23.1". But here the compilation of sqlite3@5.0.1 run through.
So is there any hint what is going wrong with Ubuntu?
With my Ubuntu 20.10 setup I did use Node 14 LTS but I had the same error as with Ubuntu 20.04 and Node 10.
My Debian setup is with Node 14 LTS and works fine.
What I remember is that with installation of the previous Joplin CLI versions (1.3.3, 1.4.9 and 1.5.1) there were found pre-built binaries for sqlite3 in my Ubuntu installation but on my Raspberry Pi (Debian 10) sqlite3 was already built for previous Joplin CLI versions.
FYI have the same issue running on MacOS Catalina - very similar error reports on installation using Node 14.
Summary
7 warnings generated.
SOLINK_MODULE(target) Release/node_sqlite3.node
ld: warning: object file (Release/obj.target/node_sqlite3/src/database.o) was built for newer OSX version (10.9) than being linked (10.7)
ld: warning: object file (Release/obj.target/node_sqlite3/src/backup.o) was built for newer OSX version (10.9) than being linked (10.7)
ld: warning: object file (Release/obj.target/node_sqlite3/src/node_sqlite3.o) was built for newer OSX version (10.9) than being linked (10.7)
ld: warning: object file (Release/obj.target/node_sqlite3/src/statement.o) was built for newer OSX version (10.9) than being linked (10.7)
clang-4.0: error: unable to execute command: Segmentation fault: 11
clang-4.0: error: linker command failed due to signal (use -v to see invocation)
make: *** [Release/node_sqlite3.node] Error 254
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Darwin 20.2.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/napi-v6-darwin-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/napi-v6-darwin-x64" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=6" "--node_napi_label=napi-v6"
gyp ERR! cwd /Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/sqlite3
gyp ERR! node -v v14.15.4
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/napi-v6-darwin-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/napi-v6-darwin-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
node-pre-gyp ERR! System Darwin 20.2.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/sqlite3
node-pre-gyp ERR! node -v v14.15.4
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/napi-v6-darwin-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/sqlite3/lib/binding/napi-v6-darwin-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sqlite3@5.0.1 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@5.0.1 install 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! /Users/<user_dir>/.npm/_logs/2021-02-01T12_09_57_039Z-debug.log
Muh, tried reinstalling and installing a bunch of times. Removed node and reinstalled both the stable version and the new one. Tried it with homebrew and npm. Nothing can get this darn thing to install! TBH it's now just a point of principle as I rarely use the CLI app.
Error log on npm install
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated highlight.js@9.12.0: Version no longer supported. Upgrade to @latest
npm WARN deprecated highlight.js@9.12.0: Version no longer supported. Upgrade to @latest
npm ERR! code 1
npm ERR! path /Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/sharp
npm ERR! command failed
npm ERR! command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
npm ERR! CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
npm ERR! LIBTOOL-STATIC Release/nothing.a
npm ERR! info sharp Detected globally-installed libvips v8.10.2
npm ERR! info sharp Building from source via node-gyp
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@15.4.0 | darwin | x64
npm ERR! gyp info spawn /usr/bin/python2
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/sharp/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/<user_dir>/.node-gyp/15.4.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/<user_dir>/.node-gyp/15.4.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/<user_dir>/.node-gyp/15.4.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/sharp',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! Traceback (most recent call last):
npm ERR! File "./gyp-mac-tool", line 611, in <module>
npm ERR! sys.exit(main(sys.argv[1:]))
npm ERR! File "./gyp-mac-tool", line 28, in main
npm ERR! exit_code = executor.Dispatch(args)
npm ERR! File "./gyp-mac-tool", line 43, in Dispatch
npm ERR! return getattr(self, method)(*args[1:])
npm ERR! File "./gyp-mac-tool", line 246, in ExecFilterLibtool
npm ERR! if not libtool_re.match(line) and not libtool_re5.match(line):
npm ERR! TypeError: cannot use a string pattern on a bytes-like object
npm ERR! make: *** [Release/nothing.a] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/node-gyp/lib/build.js:262:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:376:20)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:284:12)
npm ERR! gyp ERR! System Darwin 20.2.0
npm ERR! gyp ERR! command "/usr/local/Cellar/node/15.4.0/bin/node" "/Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Users/<user_dir>/.joplin-bin/lib/node_modules/joplin/node_modules/sharp
npm ERR! gyp ERR! node -v v15.4.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/<user_dir>/.npm/_logs/2021-02-01T16_54_14_197Z-debug.log
It's been reported that the app might not work with Node 15. I still need to check but there's a chance that's the reason and that with Node 14 it would work.
Also still these errors: was built for newer OSX version (10.9) than being linked (10.7) so it looks like it's finding somewhere (who knows where with npm) an old binary which is not compatible with the latest macOS version.
To be honest I have no suggestion on what to do. Sometimes it's like each npm error is unique and needs to be solved per user so it's hard to give general advices. Of course, as a proper JS package, npm gives you the most non-sensical useless errors (and pages of them), so all you can do is poke in the dark till something works.