gausma / nodered-contrib-signal-client

Signal communicator client nodes for Node-RED
GNU General Public License v3.0
33 stars 13 forks source link

Installation fails on current NodeRed v3.0.2 #38

Open N-b-dy opened 10 months ago

N-b-dy commented 10 months ago

The package reads really great in the package manager, unfortunately it cannot be installed with the current version of Node-RED (Node-RED v.3.0.2 / NodeJS v18.17.1). I get the following error message:

Is there any chance that the package can be made workable again?

`

2023-09-04T21:54:18.840Z Installieren : nodered-contrib-signal-client 2.4.2

2023-09-04T21:54:21.071Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict nodered-contrib-signal-client@2.4.2 2023-09-04T21:54:21.319Z [err] npm 2023-09-04T21:54:21.319Z [err] WARN 2023-09-04T21:54:21.319Z [err] config production Use --omit=dev instead. 2023-09-04T21:54:33.808Z [err] npm 2023-09-04T21:54:33.808Z [err] WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. 2023-09-04T21:54:34.135Z [err] npm 2023-09-04T21:54:34.135Z [err] WARN deprecated node-webcrypto-ossl@1.0.49: node-webcrypto-ossl has been deprecated. This module was created in 2015 because at the time the Node team did not feel the need to have two crypto interfaces and they already had one before WebCrypto was defined 2023-09-04T21:54:34.857Z [err] npm WARN 2023-09-04T21:54:34.857Z [err] deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. 2023-09-04T21:54:38.070Z [err] npm 2023-09-04T21:54:38.071Z [err] ERR! code 1 2023-09-04T21:54:38.071Z [err] npm ERR! path 2023-09-04T21:54:38.071Z [err] /opt/iobroker/iobroker-data/node-red/node_modules/node-webcrypto-ossl 2023-09-04T21:54:38.072Z [err] npm ERR! command failed 2023-09-04T21:54:38.072Z [err] npm ERR! command sh -c node-gyp rebuild 2023-09-04T21:54:38.072Z [err] npm ERR! 2023-09-04T21:54:38.072Z [err] make: Entering directory '/opt/iobroker/iobroker-data/node-red/node_modules/node-webcrypto-ossl/build' 2023-09-04T21:54:38.072Z [err] npm ERR! CXX(target) Release/obj.target/nodessl/src/main.o 2023-09-04T21:54:38.072Z [err] npm 2023-09-04T21:54:38.072Z [err] ERR! 2023-09-04T21:54:38.072Z [err] CXX(target) Release/obj.target/nodessl/src/core/key_exp.o 2023-09-04T21:54:38.072Z [err] npm ERR! 2023-09-04T21:54:38.072Z [err] make: Leaving directory '/opt/iobroker/iobroker-data/node-red/node_modules/node-webcrypto-ossl/build' 2023-09-04T21:54:38.072Z [err] npm ERR! gyp info it worked if it ends with ok 2023-09-04T21:54:38.072Z [err] npm ERR! gyp info using node-gyp@9.3.1 2023-09-04T21:54:38.072Z [err] npm 2023-09-04T21:54:38.072Z [err] ERR! gyp info using node@18.17.1 | linux | x64 2023-09-04T21:54:38.072Z [err] npm ERR! gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3" 2023-09-04T21:54:38.072Z [err] npm 2023-09-04T21:54:38.072Z [err] ERR! gyp info spawn /usr/bin/python3 2023-09-04T21:54:38.072Z [err] npm ERR! 2023-09-04T21:54:38.072Z [err] gyp info spawn args [ 2023-09-04T21:54:38.072Z [err] npm ERR! 2023-09-04T21:54:38.072Z [err] gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', 2023-09-04T21:54:38.072Z [err] npm ERR! gyp info spawn args 'binding.gyp', 2023-09-04T21:54:38.072Z [err] npm ERR! gyp info spawn args '-f', 2023-09-04T21:54:38.072Z [err] npm ERR! 2023-09-04T21:54:38.073Z [err] gyp info spawn args 'make', 2023-09-04T21:54:38.073Z [err] npm ERR! 2023-09-04T21:54:38.073Z [err] gyp info spawn args '-I', 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! gyp info spawn args '/opt/iobroker/iobroker-data/node-red/node_modules/node-webcrypto-ossl/build/config.gypi', 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! gyp info spawn args '-I', 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! gyp info spawn args '-I', 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! gyp info spawn args '/home/iobroker/.cache/node-gyp/18.17.1/include/node/common.gypi', 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! gyp info spawn args '-Dlibrary=shared_library', 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! gyp info spawn args '-Dvisibility=default', 2023-09-04T21:54:38.073Z [err] npm ERR! gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/18.17.1', 2023-09-04T21:54:38.073Z [err] npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp', 2023-09-04T21:54:38.073Z [err] npm ERR! 2023-09-04T21:54:38.073Z [err] gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/18.17.1/<(target_arch)/node.lib', 2023-09-04T21:54:38.073Z [err] npm ERR! 2023-09-04T21:54:38.073Z [err] gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/iobroker-data/node-red/node_modules/node-webcrypto-ossl', 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! gyp info spawn args '-Dnode_engine=v8', 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! gyp info spawn args '--depth=.', 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! gyp info spawn args '--no-parallel', 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! gyp info spawn args '--generator-output', 2023-09-04T21:54:38.073Z [err] npm ERR! 2023-09-04T21:54:38.073Z [err] gyp info spawn args 'build', 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! gyp info spawn args '-Goutput_dir=.' 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! gyp info spawn args ] 2023-09-04T21:54:38.073Z [err] npm ERR! gyp info spawn make 2023-09-04T21:54:38.073Z [err] npm ERR! 2023-09-04T21:54:38.073Z [err] gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] 2023-09-04T21:54:38.073Z [err] npm ERR! 2023-09-04T21:54:38.073Z [err] In file included from ../../nan/nan.h:60, 2023-09-04T21:54:38.073Z [err] npm ERR! 2023-09-04T21:54:38.073Z [err] from ../src/node/../core/common.h:8, 2023-09-04T21:54:38.073Z [err] npm ERR! 2023-09-04T21:54:38.073Z [err] from ../src/node/common.h:4, 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! from ../src/main.cpp:1: 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! /home/iobroker/.cache/node-gyp/18.17.1/include/node/node.h:1014:7: warning: cast between incompatible function types from 'void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)' {aka 'void ()(v8::Local)'} to 'node::addon_register_func' {aka 'void ()(v8::Local, v8::Local, void)'} [-Wcast-function-type] 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! 1014 | (node::addon_register_func) (regfunc), \ 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! | ^~~~~~~~~ 2023-09-04T21:54:38.073Z [err] npm ERR! /home/iobroker/.cache/node-gyp/18.17.1/include/node/node.h:1048:3: note: in expansion of macro 'NODE_MODULE_X' 2023-09-04T21:54:38.073Z [err] npm ERR! 1048 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) 2023-09-04T21:54:38.073Z [err] npm ERR! 2023-09-04T21:54:38.073Z [err] | ^~~~~ 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! ../src/main.cpp:93:1: note: in expansion of macro 'NODE_MODULE' 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! 93 | NODE_MODULE(nodessl, InitModule); 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! | ^~~ 2023-09-04T21:54:38.073Z [err] npm ERR! ../src/core/key_exp.cpp: In function 'Handle<std::cxx11::basic_string > KEY_export_spki(EVP_PKEY)': 2023-09-04T21:54:38.073Z [err] npm ERR! 2023-09-04T21:54:38.073Z [err] ../src/core/key_exp.cpp:41:33: error: invalid conversion from 'int ()(BIO, const EVP_PKEY)' {aka 'int ()(bio_st, const evp_pkey_st)'} to 'int ()(BIO, EVP_PKEY)' {aka 'int ()(bio_st, evp_pkey_st)'} [-fpermissive] 2023-09-04T21:54:38.073Z [err] npm ERR! 2023-09-04T21:54:38.073Z [err] 41 | return KEY_export(pkey, &i2d_PUBKEY_bio); 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! | ^~~~~~~ 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! | | 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! | int ()(BIO, const EVP_PKEY) {aka int ()(bio_st, const evp_pkey_st)} 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.073Z [err] ERR! ../src/core/key_exp.cpp:5:60: note: initializing argument 2 of 'Handle<std::__cxx11::basic_string > KEY_export(EVP_PKEY, int ()(BIO, EVP_PKEY))' 2023-09-04T21:54:38.073Z [err] npm ERR! 5 | static Handle KEY_export(EVP_PKEY pkey, int(i2d_function_bio)(BIO bp, EVP_PKEY key)) { 2023-09-04T21:54:38.073Z [err] npm ERR! 2023-09-04T21:54:38.073Z [err] | ~^~~~~~~~~ 2023-09-04T21:54:38.073Z [err] npm ERR! 2023-09-04T21:54:38.073Z [err] ../src/core/key_exp.cpp: In function 'Handle<std::__cxx11::basic_string > KEY_export_pkcs8(EVP_PKEY)': 2023-09-04T21:54:38.073Z [err] npm ERR! 2023-09-04T21:54:38.073Z [err] ../src/core/key_exp.cpp:54:33: error: invalid conversion from 'int ()(BIO, const EVP_PKEY)' {aka 'int ()(bio_st, const evp_pkey_st)'} to 'int ()(BIO, EVP_PKEY)' {aka 'int ()(bio_st, evp_pkey_st)'} [-fpermissive] 2023-09-04T21:54:38.073Z [err] npm ERR! 2023-09-04T21:54:38.073Z [err] 54 | return KEY_export(pkey, &i2d_PKCS8PrivateKeyInfo_bio); 2023-09-04T21:54:38.073Z [err] npm 2023-09-04T21:54:38.074Z [err] ERR! | ^~~~~~~~ 2023-09-04T21:54:38.074Z [err] npm ERR! 2023-09-04T21:54:38.074Z [err] | | 2023-09-04T21:54:38.074Z [err] npm 2023-09-04T21:54:38.074Z [err] ERR! | int ()(BIO, const EVP_PKEY) {aka int ()(bio_st, const evp_pkey_st)} 2023-09-04T21:54:38.074Z [err] npm 2023-09-04T21:54:38.074Z [err] ERR! ../src/core/key_exp.cpp:5:60: note: initializing argument 2 of 'Handle<std::cxx11::basic_string > KEY_export(EVP_PKEY, int ()(BIO, EVP_PKEY))' 2023-09-04T21:54:38.074Z [err] npm ERR! 5 | static Handle KEY_export(EVP_PKEY pkey, int(i2d_function_bio)(BIO bp, EVP_PKEY key)) { 2023-09-04T21:54:38.074Z [err] npm 2023-09-04T21:54:38.074Z [err] ERR! | ~^~~~~~~~~ 2023-09-04T21:54:38.074Z [err] npm ERR! make: *** [nodessl.target.mk:150: Release/obj.target/nodessl/src/core/key_exp.o] Error 1 2023-09-04T21:54:38.074Z [err] npm ERR! gyp ERR! build error 2023-09-04T21:54:38.074Z [err] npm 2023-09-04T21:54:38.074Z [err] ERR! gyp ERR! stack Error: make failed with exit code: 2 2023-09-04T21:54:38.074Z [err] npm 2023-09-04T21:54:38.074Z [err] ERR! gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23) 2023-09-04T21:54:38.074Z [err] npm 2023-09-04T21:54:38.074Z [err] ERR! gyp ERR! stack at ChildProcess.emit (node:events:514:28) 2023-09-04T21:54:38.074Z [err] npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12) 2023-09-04T21:54:38.074Z [err] npm 2023-09-04T21:54:38.074Z [err] ERR! gyp ERR! System Linux 5.15.111-1-pve 2023-09-04T21:54:38.074Z [err] npm ERR! 2023-09-04T21:54:38.074Z [err] gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 2023-09-04T21:54:38.074Z [err] npm ERR! gyp ERR! cwd /opt/iobroker/iobroker-data/node-red/node_modules/node-webcrypto-ossl 2023-09-04T21:54:38.074Z [err] npm ERR! gyp ERR! node -v v18.17.1 2023-09-04T21:54:38.074Z [err] npm ERR! 2023-09-04T21:54:38.074Z [err] gyp ERR! node-gyp -v v9.3.1 2023-09-04T21:54:38.074Z [err] npm ERR! 2023-09-04T21:54:38.074Z [err] gyp ERR! not ok 2023-09-04T21:54:38.075Z [err] 2023-09-04T21:54:38.075Z [err] npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2023-09-04T21_54_21_296Z-debug-0.log 2023-09-04T21:54:38.094Z rc=1`