Hello,
I can't install (manually or pallete manager) this node-red-contrib-msg-queue on node-red latest docker image. Is something related to alpine linux?
I've tried to update npm and install sqlite3 manually and can't solve this problem. Github issues or documentation wasn't helpful too.
Command:
npm install node-red-contrib-msg-queue
Error message:
2023-03-07T17:40:16.794Z Install : node-red-contrib-msg-queue 1.0.2
2023-03-07T16:43:08.946Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-msg-queue@1.0.2
2023-03-07T16:43:09.337Z [err] npm
2023-03-07T16:43:09.337Z [err] WARN config
2023-03-07T16:43:09.337Z [err] production Use `--omit=dev` instead.
2023-03-07T16:43:12.844Z [err] npm
2023-03-07T16:43:12.845Z [err] WARN deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
2023-03-07T16:43:14.750Z [err] npm ERR! code 1
2023-03-07T16:43:14.750Z [err] npm ERR!
2023-03-07T16:43:14.751Z [err] path /data/node_modules/node-persistent-queue/node_modules/sqlite3
2023-03-07T16:43:14.751Z [err] npm ERR! command failed
2023-03-07T16:43:14.751Z [err] npm ERR! command sh -c node-pre-gyp install --fallback-to-build
2023-03-07T16:43:14.751Z [err] npm ERR! make: Entering directory '/data/node_modules/node-persistent-queue/node_modules/sqlite3/build'
2023-03-07T16:43:14.751Z [err] npm ERR! ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3310100/sqlite3.c
2023-03-07T16:43:14.751Z [err] npm
2023-03-07T16:43:14.751Z [err] ERR! make: Leaving directory '/data/node_modules/node-persistent-queue/node_modules/sqlite3/build'
2023-03-07T16:43:14.751Z [err] npm ERR! 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=/data/node_modules/node-persistent-queue/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/data/node_modules/node-persistent-queue/node_modules/sqlite3/lib/binding/node-v93-linux-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
2023-03-07T16:43:14.751Z [err] npm ERR!
2023-03-07T16:43:14.752Z [err] node-pre-gyp info it worked if it ends with ok
2023-03-07T16:43:14.752Z [err] npm ERR! node-pre-gyp info using node-pre-gyp@1.0.10
2023-03-07T16:43:14.752Z [err] npm ERR! node-pre-gyp info using node@16.16.0 | linux | x64
2023-03-07T16:43:14.752Z [err] npm ERR! node-pre-gyp info check checked for "/data/node_modules/node-persistent-queue/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node" (not found)
2023-03-07T16:43:14.752Z [err] npm ERR!
2023-03-07T16:43:14.752Z [err] node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz
2023-03-07T16:43:14.752Z [err] npm ERR! node-pre-gyp ERR! install response status 403 Forbidden on https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz
2023-03-07T16:43:14.752Z [err] npm ERR! node-pre-gyp WARN Pre-built binaries not installable for sqlite3@4.2.0 and node@16.16.0 (node-v93 ABI, musl) (falling back to source compile with node-gyp)
2023-03-07T16:43:14.752Z [err] npm ERR! node-pre-gyp WARN Hit error response status 403 Forbidden on https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz
2023-03-07T16:43:14.752Z [err] npm ERR!
2023-03-07T16:43:14.752Z [err] gyp info it worked if it ends with ok
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info using node-gyp@9.0.0
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info using node@16.16.0 | linux | x64
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info ok
2023-03-07T16:43:14.752Z [err] npm
2023-03-07T16:43:14.752Z [err] ERR! gyp info it worked if it ends with ok
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info using node-gyp@9.0.0
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info using node@16.16.0 | linux | x64
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info find Python using Python version 3.10.5 found at "/usr/bin/python3"
2023-03-07T16:43:14.752Z [err] npm
2023-03-07T16:43:14.752Z [err] ERR! gyp info spawn /usr/bin/python3
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args [
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
2023-03-07T16:43:14.752Z [err] npm ERR!
2023-03-07T16:43:14.752Z [err] gyp info spawn args 'binding.gyp',
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args '-f',
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args 'make',
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args '-I',
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args '/data/node_modules/node-persistent-queue/node_modules/sqlite3/build/config.gypi',
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args '-I',
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
2023-03-07T16:43:14.752Z [err] npm ERR!
2023-03-07T16:43:14.752Z [err] gyp info spawn args '-I',
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args '/usr/src/node-red/.cache/node-gyp/16.16.0/include/node/common.gypi',
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args '-Dlibrary=shared_library',
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args '-Dvisibility=default',
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args '-Dnode_root_dir=/usr/src/node-red/.cache/node-gyp/16.16.0',
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args '-Dnode_lib_file=/usr/src/node-red/.cache/node-gyp/16.16.0/<(target_arch)/node.lib',
2023-03-07T16:43:14.752Z [err] npm
2023-03-07T16:43:14.752Z [err] ERR! gyp info spawn args '-Dmodule_root_dir=/data/node_modules/node-persistent-queue/node_modules/sqlite3',
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args '-Dnode_engine=v8',
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args '--depth=.',
2023-03-07T16:43:14.752Z [err] npm ERR!
2023-03-07T16:43:14.752Z [err] gyp info spawn args '--no-parallel',
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args '--generator-output',
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args 'build',
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args '-Goutput_dir=.'
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn args ]
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info ok
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info it worked if it ends with ok
2023-03-07T16:43:14.752Z [err] npm
2023-03-07T16:43:14.752Z [err] ERR! gyp info using node-gyp@9.0.0
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info using node@16.16.0 | linux | x64
2023-03-07T16:43:14.752Z [err] npm ERR! gyp info spawn make
2023-03-07T16:43:14.752Z [err] npm ERR!
2023-03-07T16:43:14.752Z [err] gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
2023-03-07T16:43:14.752Z [err] npm ERR! /bin/sh: python: not found
2023-03-07T16:43:14.752Z [err] npm ERR! make: *** [deps/action_before_build.target.mk:13: Release/obj/gen/sqlite-autoconf-3310100/sqlite3.c] Error 127
2023-03-07T16:43:14.752Z [err] npm ERR! gyp ERR! build error
2023-03-07T16:43:14.752Z [err] npm
2023-03-07T16:43:14.752Z [err] ERR! gyp ERR! stack Error: `make` failed with exit code: 2
2023-03-07T16:43:14.752Z [err] npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
2023-03-07T16:43:14.752Z [err] npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28)
2023-03-07T16:43:14.752Z [err] npm ERR!
2023-03-07T16:43:14.752Z [err] gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
2023-03-07T16:43:14.752Z [err] npm ERR! gyp ERR! System Linux 5.15.90.1-microsoft-standard-WSL2
2023-03-07T16:43:14.752Z [err] npm ERR! 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=/data/node_modules/node-persistent-queue/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/data/node_modules/node-persistent-queue/node_modules/sqlite3/lib/binding/node-v93-linux-x64" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93"
2023-03-07T16:43:14.752Z [err] npm ERR! gyp ERR! cwd /data/node_modules/node-persistent-queue/node_modules/sqlite3
2023-03-07T16:43:14.752Z [err] npm ERR! gyp ERR! node -v v16.16.0
2023-03-07T16:43:14.752Z [err] npm ERR! gyp ERR! node-gyp -v v9.0.0
2023-03-07T16:43:14.752Z [err] npm ERR! gyp ERR! not ok
2023-03-07T16:43:14.752Z [err] npm ERR!
2023-03-07T16:43:14.752Z [err] node-pre-gyp ERR! build error
2023-03-07T16:43:14.752Z [err] npm ERR! 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=/data/node_modules/node-persistent-queue/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/data/node_modules/node-persistent-queue/node_modules/sqlite3/lib/binding/node-v93-linux-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
2023-03-07T16:43:14.752Z [err] npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/data/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
2023-03-07T16:43:14.752Z [err] npm ERR!
2023-03-07T16:43:14.752Z [err] node-pre-gyp ERR! stack at ChildProcess.emit (node:events:527:28)
2023-03-07T16:43:14.752Z [err] npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
2023-03-07T16:43:14.752Z [err] npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
2023-03-07T16:43:14.752Z [err] npm ERR! node-pre-gyp ERR! System Linux 5.15.90.1-microsoft-standard-WSL2
2023-03-07T16:43:14.752Z [err] npm
2023-03-07T16:43:14.752Z [err] ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/data/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
2023-03-07T16:43:14.752Z [err] npm ERR! node-pre-gyp ERR! cwd /data/node_modules/node-persistent-queue/node_modules/sqlite3
2023-03-07T16:43:14.752Z [err] npm ERR! node-pre-gyp ERR! node -v v16.16.0
2023-03-07T16:43:14.752Z [err] npm ERR!
2023-03-07T16:43:14.752Z [err] node-pre-gyp ERR! node-pre-gyp -v v1.0.10
2023-03-07T16:43:14.752Z [err] npm ERR! node-pre-gyp ERR! not ok
2023-03-07T16:43:14.753Z [err]
2023-03-07T16:43:14.753Z [err] npm ERR!
2023-03-07T16:43:14.753Z [err] A complete log of this run can be found in:
2023-03-07T16:43:14.753Z [err] npm ERR! /data/.npm/_logs/2023-03-07T16_43_09_306Z-debug-0.log
2023-03-07T16:43:14.760Z rc=1
Tried a lot of solutions from Google but can't make run on this image.