ironfish icon indicating copy to clipboard operation
ironfish copied to clipboard

Install Error on Ubuntu

Open jkdi opened this issue 2 years ago • 1 comments

What happened?

npm install -g ironfish npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '[email protected]', npm WARN EBADENGINE required: { node: '16.x' }, npm WARN EBADENGINE current: { node: 'v18.7.0', npm: '8.18.0' } npm WARN EBADENGINE } npm WARN deprecated @types/[email protected]: This is a stub types definition. minipass provides its own type definitions, so you do not need this installed. npm ERR! code 2 npm ERR! path /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel npm ERR! command failed npm ERR! command sh -c -- prebuild-install || (npm install --ignore-scripts && npm run _prebuild) npm ERR! added 656 packages, and audited 658 packages in 34s npm ERR! npm ERR! 64 packages are looking for funding npm ERR! run npm fund for details npm ERR! npm ERR! 4 high severity vulnerabilities npm ERR! npm ERR! To address all issues (including breaking changes), run: npm ERR! npm audit fix --force npm ERR! npm ERR! Run npm audit for details. npm ERR! npm ERR! > [email protected] _prebuild npm ERR! > prebuild --backend cmake-js npm ERR! npm ERR! [ npm ERR! '/usr/bin/node', npm ERR! '/usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/node_modules/.bin/cmake-js', npm ERR! 'rebuild', npm ERR! '--runtime-version=18.7.0', npm ERR! '--arch=x64', npm ERR! '--runtime=node' npm ERR! ] npm ERR! Not searching for unused variables given on the command line. npm ERR! -- The C compiler identification is GNU 12.2.0 npm ERR! -- The CXX compiler identification is GNU 12.2.0 npm ERR! -- Detecting C compiler ABI info npm ERR! -- Detecting C compiler ABI info - done npm ERR! -- Check for working C compiler: /usr/bin/cc - skipped npm ERR! -- Detecting C compile features npm ERR! -- Detecting C compile features - done npm ERR! -- Detecting CXX compiler ABI info npm ERR! -- Detecting CXX compiler ABI info - done npm ERR! -- Check for working CXX compiler: /usr/bin/c++ - skipped npm ERR! -- Detecting CXX compile features npm ERR! -- Detecting CXX compile features - done npm ERR! -- Performing Test CMAKE_HAVE_LIBC_PTHREAD npm ERR! -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success npm ERR! -- Found Threads: TRUE npm ERR! -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.a (found version "3.0.5") npm ERR! -- Looking for include file sys/queue.h npm ERR! -- Looking for include file sys/queue.h - found npm ERR! -- Looking for include files sys/socket.h, linux/if_addr.h npm ERR! -- Looking for include files sys/socket.h, linux/if_addr.h - found npm ERR! -- Looking for include files sys/socket.h, linux/rtnetlink.h npm ERR! -- Looking for include files sys/socket.h, linux/rtnetlink.h - found npm ERR! -- Looking for 4 include files sys/types.h, ..., netinet/ip_icmp.h npm ERR! -- Looking for 4 include files sys/types.h, ..., netinet/ip_icmp.h - found npm ERR! -- Looking for 3 include files sys/types.h, ..., net/route.h npm ERR! -- Looking for 3 include files sys/types.h, ..., net/route.h - found npm ERR! -- Looking for include file stdatomic.h npm ERR! -- Looking for include file stdatomic.h - found npm ERR! -- Looking for usrsctp.h npm ERR! -- Looking for usrsctp.h - found npm ERR! -- Performing Test have_sa_len npm ERR! -- Performing Test have_sa_len - Failed npm ERR! -- Performing Test have_sin_len npm ERR! -- Performing Test have_sin_len - Failed npm ERR! -- Performing Test have_sin6_len npm ERR! -- Performing Test have_sin6_len - Failed npm ERR! -- Performing Test have_sconn_len npm ERR! -- Performing Test have_sconn_len - Failed npm ERR! -- Performing Test has_wfloat_equal npm ERR! -- Performing Test has_wfloat_equal - Success npm ERR! -- Performing Test has_wshadow npm ERR! -- Performing Test has_wshadow - Success npm ERR! -- Performing Test has_wpointer_aritih npm ERR! -- Performing Test has_wpointer_aritih - Success npm ERR! -- Performing Test has_wunreachable_code npm ERR! -- Performing Test has_wunreachable_code - Success npm ERR! -- Performing Test has_winit_self npm ERR! -- Performing Test has_winit_self - Success npm ERR! -- Performing Test has_wno_unused_function npm ERR! -- Performing Test has_wno_unused_function - Success npm ERR! -- Performing Test has_wno_unused_parameter npm ERR! -- Performing Test has_wno_unused_parameter - Success npm ERR! -- Performing Test has_wno_unreachable_code npm ERR! -- Performing Test has_wno_unreachable_code - Success npm ERR! -- Performing Test has_wstrict_prototypes npm ERR! -- Performing Test has_wstrict_prototypes - Success npm ERR! -- Compiler flags (CMAKE_C_FLAGS): -std=c99 -pedantic -Wall -Wextra -Wfloat-equal -Wshadow -Wpointer-arith -Wunreachable-code -Winit-self -Wno-unused-function -Wno-unused-parameter -Wno-unreachable-code -Wstrict-prototypes -Werror npm ERR! -- Performing Test has_wno_address_of_packed_member npm ERR! -- Performing Test has_wno_address_of_packed_member - Success npm ERR! -- Performing Test has_wno_deprecated_declarations npm ERR! -- Performing Test has_wno_deprecated_declarations - Success npm ERR! -- Looking for arpa/inet.h npm ERR! -- Looking for arpa/inet.h - found npm ERR! -- Looking for byteswap.h npm ERR! -- Looking for byteswap.h - found npm ERR! -- Looking for inttypes.h npm ERR! -- Looking for inttypes.h - found npm ERR! -- Looking for machine/types.h npm ERR! -- Looking for machine/types.h - not found npm ERR! -- Looking for netinet/in.h npm ERR! -- Looking for netinet/in.h - found npm ERR! -- Looking for stdint.h npm ERR! -- Looking for stdint.h - found npm ERR! -- Looking for stdlib.h npm ERR! -- Looking for stdlib.h - found npm ERR! -- Looking for sys/int_types.h npm ERR! -- Looking for sys/int_types.h - not found npm ERR! -- Looking for sys/socket.h npm ERR! -- Looking for sys/socket.h - found npm ERR! -- Looking for sys/types.h npm ERR! -- Looking for sys/types.h - found npm ERR! -- Looking for unistd.h npm ERR! -- Looking for unistd.h - found npm ERR! -- Looking for windows.h npm ERR! -- Looking for windows.h - not found npm ERR! -- Looking for winsock2.h npm ERR! -- Looking for winsock2.h - not found npm ERR! -- Looking for sigaction npm ERR! -- Looking for sigaction - found npm ERR! -- Looking for inet_aton npm ERR! -- Looking for inet_aton - found npm ERR! -- Looking for usleep npm ERR! -- Looking for usleep - found npm ERR! -- Looking for stddef.h npm ERR! -- Looking for stddef.h - found npm ERR! -- Check size of uint8_t npm ERR! -- Check size of uint8_t - done npm ERR! -- Check size of uint16_t npm ERR! -- Check size of uint16_t - done npm ERR! -- Check size of uint32_t npm ERR! -- Check size of uint32_t - done npm ERR! -- Check size of uint64_t npm ERR! -- Check size of uint64_t - done npm ERR! -- Check size of int32_t npm ERR! -- Check size of int32_t - done npm ERR! -- Check size of unsigned long npm ERR! -- Check size of unsigned long - done npm ERR! -- Check size of unsigned long long npm ERR! -- Check size of unsigned long long - done npm ERR! -- Performing Test HAVE_INLINE npm ERR! -- Performing Test HAVE_INLINE - Success npm ERR! -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY npm ERR! -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success npm ERR! -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY npm ERR! -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success npm ERR! -- Performing Test COMPILER_HAS_DEPRECATED_ATTR npm ERR! -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success npm ERR! -- Using the single-header code from /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/deps/json/single_include/ npm ERR! -- Configuring done npm ERR! -- Generating done npm ERR! -- Build files have been written to: /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build npm ERR! [ 2%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/addr.c.o npm ERR! [ 2%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/agent.c.o npm ERR! [ 4%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/crc32.c.o npm ERR! [ 4%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/const_time.c.o npm ERR! [ 4%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/conn.c.o npm ERR! [ 6%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/conn_poll.c.o npm ERR! [ 6%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/conn_thread.c.o npm ERR! [ 6%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/conn_mux.c.o npm ERR! [ 8%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/base64.c.o npm ERR! [ 8%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/hash.c.o npm ERR! [ 10%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/hmac.c.o npm ERR! [ 10%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/ice.c.o npm ERR! [ 10%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/juice.c.o npm ERR! [ 12%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/log.c.o npm ERR! [ 12%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/random.c.o npm ERR! [ 12%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/server.c.o npm ERR! [ 14%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/stun.c.o npm ERR! [ 14%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/timestamp.c.o npm ERR! [ 14%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/turn.c.o npm ERR! [ 17%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/udp.c.o npm ERR! [ 17%] Linking C static library libjuice-static.a npm ERR! [ 17%] Built target juice-static npm ERR! [ 17%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_asconf.c.o npm ERR! [ 17%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_auth.c.o npm ERR! [ 19%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_bsd_addr.c.o npm ERR! [ 19%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_callout.c.o npm ERR! [ 21%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_cc_functions.c.o npm ERR! [ 21%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_crc32.c.o npm ERR! [ 21%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_indata.c.o npm ERR! [ 23%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_input.c.o npm ERR! [ 23%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_output.c.o npm ERR! [ 23%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_pcb.c.o npm ERR! [ 25%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_peeloff.c.o npm ERR! [ 25%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_sha1.c.o npm ERR! [ 25%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_ss_functions.c.o npm ERR! [ 27%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_sysctl.c.o npm ERR! [ 27%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_timer.c.o npm ERR! [ 29%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_userspace.c.o npm ERR! [ 29%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_usrreq.c.o npm ERR! [ 29%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctputil.c.o npm ERR! [ 31%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet6/sctp6_usrreq.c.o npm ERR! [ 31%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/user_environment.c.o npm ERR! [ 31%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/user_mbuf.c.o npm ERR! [ 34%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/user_recv_thread.c.o npm ERR! [ 34%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/user_socket.c.o npm ERR! [ 36%] Linking C static library libusrsctp.a npm ERR! [ 36%] Built target usrsctp npm ERR! [ 36%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/srtp/srtp.c.o npm ERR! [ 38%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/cipher/cipher.c.o npm ERR! [ 38%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/cipher/cipher_test_cases.c.o npm ERR! [ 38%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/cipher/null_cipher.c.o npm ERR! [ 40%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/cipher/aes_icm_ossl.c.o npm ERR! [ 40%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/cipher/aes_gcm_ossl.c.o npm ERR! [ 40%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/hash/auth.c.o npm ERR! [ 42%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/hash/auth_test_cases.c.o npm ERR! [ 42%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/hash/null_auth.c.o npm ERR! [ 44%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/hash/hmac_ossl.c.o npm ERR! [ 44%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/kernel/alloc.c.o npm ERR! [ 44%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/kernel/crypto_kernel.c.o npm ERR! [ 46%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/kernel/err.c.o npm ERR! [ 46%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/kernel/key.c.o npm ERR! [ 46%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/math/datatypes.c.o npm ERR! [ 48%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/replay/rdb.c.o npm ERR! [ 48%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/replay/rdbx.c.o npm ERR! [ 51%] Linking C static library libsrtp2.a npm ERR! [ 51%] Built target srtp2 npm ERR! [ 51%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/candidate.cpp.o npm ERR! [ 53%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/channel.cpp.o npm ERR! [ 53%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/configuration.cpp.o npm ERR! [ 53%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/datachannel.cpp.o npm ERR! prebuild-install WARN install No prebuilt binaries found (target=18.7.0 runtime=node arch=x64 libc= platform=linux) npm ERR! npm WARN deprecated [email protected]: this library is no longer supported npm ERR! npm WARN deprecated [email protected]: 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. npm ERR! npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm ERR! npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap. npm ERR! npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap. npm ERR! prebuild info begin Prebuild version 11.0.4 npm ERR! prebuild info build Preparing to prebuild [email protected] for node 18.7.0 on linux-x64 using cmake-js npm ERR! info TOOL Using Unix Makefiles generator. npm ERR! info CMD CLEAN npm ERR! info RUN [ npm ERR! info RUN 'cmake', npm ERR! info RUN '-E', npm ERR! info RUN 'remove_directory', npm ERR! info RUN '/usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build' npm ERR! info RUN ] npm ERR! info CMD CONFIGURE npm ERR! info RUN [ npm ERR! info RUN 'cmake', npm ERR! info RUN '/usr/local/lib/node_modules/ironfish/node_modules/node-datachannel', npm ERR! info RUN '--no-warn-unused-cli', npm ERR! info RUN '-G', npm ERR! info RUN 'Unix Makefiles', npm ERR! info RUN '-DCMAKE_JS_VERSION=6.3.2', npm ERR! info RUN '-DCMAKE_BUILD_TYPE=Release', npm ERR! info RUN '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/Release', npm ERR! info RUN '-DCMAKE_JS_INC=/root/.cmake-js/node-x64/v18.7.0/include/node;/usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/node_modules/nan', npm ERR! info RUN '-DCMAKE_JS_SRC=', npm ERR! info RUN '-DNODE_RUNTIME=node', npm ERR! info RUN '-DNODE_RUNTIMEVERSION=18.7.0', npm ERR! info RUN '-DNODE_ARCH=x64' npm ERR! info RUN ] npm ERR! info CMD BUILD npm ERR! info RUN [ npm ERR! info RUN 'cmake', npm ERR! info RUN '--build', npm ERR! info RUN '/usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build', npm ERR! info RUN '--config', npm ERR! info RUN 'Release' npm ERR! info RUN ] npm ERR! /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/deps/libjuice/src/conn_poll.c: In function ‘conn_poll_process’: npm ERR! /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/deps/libjuice/src/conn_poll.c:272:28: warning: ‘ret’ may be used uninitialized [-Wmaybe-uninitialized] npm ERR! 272 | if (ret < 0) { npm ERR! | ^ npm ERR! /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/deps/libjuice/src/conn_poll.c:259:29: note: ‘ret’ was declared here npm ERR! 259 | int ret; npm ERR! | ^~~ npm ERR! In file included from /root/.cmake-js/node-x64/v18.7.0/include/node/openssl/././archs/linux-x86_64/asm/include/openssl/ssl.h:31, npm ERR! from /root/.cmake-js/node-x64/v18.7.0/include/node/openssl/./ssl_asm.h:11, npm ERR! from /root/.cmake-js/node-x64/v18.7.0/include/node/openssl/ssl.h:4, npm ERR! from /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/src/impl/tls.hpp:56, npm ERR! from /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/src/impl/certificate.hpp:24, npm ERR! from /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/src/impl/dtlstransport.hpp:22, npm ERR! from /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/src/impl/peerconnection.hpp:24, npm ERR! from /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/src/impl/datachannel.hpp:25, npm ERR! from /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/src/datachannel.cpp:23: npm ERR! /root/.cmake-js/node-x64/v18.7.0/include/node/openssl/x509.h:4:11: fatal error: ./x509_asm.h: Datei oder Verzeichnis nicht gefunden npm ERR! 4 | # include "./x509_asm.h" npm ERR! | ^~~~~~~~~~~~~~ npm ERR! compilation terminated. npm ERR! gmake[2]: *** [_deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/build.make:118: _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/datachannel.cpp.o] Fehler 1 npm ERR! gmake[1]: *** [CMakeFiles/Makefile2:372: _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/all] Fehler 2 npm ERR! gmake: *** [Makefile:136: all] Fehler 2 npm ERR! ERR! OMG Process terminated: 2 npm ERR! prebuild ERR! build Error: Failed to build cmake with exit code 1 npm ERR! prebuild ERR! build at ChildProcess. (/usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/node_modules/prebuild/cmakebuild.js:32:19) npm ERR! prebuild ERR! build at ChildProcess.emit (node:events:513:28) npm ERR! prebuild ERR! build at ChildProcess._handle.onexit (node:internal/child_process:291:12)

npm ERR! A complete log of this run can be found in:

Version

No response

Debug output

npm install -g ironfish
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '16.x' },
npm WARN EBADENGINE   current: { node: 'v18.7.0', npm: '8.18.0' }
npm WARN EBADENGINE }
npm WARN deprecated @types/[email protected]: This is a stub types definition. minipass provides its own type definitions, so you do not need this installed.
npm ERR! code 2
npm ERR! path /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel
npm ERR! command failed
npm ERR! command sh -c -- prebuild-install || (npm install --ignore-scripts && npm run _prebuild)
npm ERR! added 656 packages, and audited 658 packages in 34s
npm ERR!
npm ERR! 64 packages are looking for funding
npm ERR!   run `npm fund` for details
npm ERR!
npm ERR! 4 high severity vulnerabilities
npm ERR!
npm ERR! To address all issues (including breaking changes), run:
npm ERR!   npm audit fix --force
npm ERR!
npm ERR! Run `npm audit` for details.
npm ERR!
npm ERR! > [email protected] _prebuild
npm ERR! > prebuild --backend cmake-js
npm ERR!
npm ERR! [
npm ERR!   '/usr/bin/node',
npm ERR!   '/usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/node_modules/.bin/cmake-js',
npm ERR!   'rebuild',
npm ERR!   '--runtime-version=18.7.0',
npm ERR!   '--arch=x64',
npm ERR!   '--runtime=node'
npm ERR! ]
npm ERR! Not searching for unused variables given on the command line.
npm ERR! -- The C compiler identification is GNU 12.2.0
npm ERR! -- The CXX compiler identification is GNU 12.2.0
npm ERR! -- Detecting C compiler ABI info
npm ERR! -- Detecting C compiler ABI info - done
npm ERR! -- Check for working C compiler: /usr/bin/cc - skipped
npm ERR! -- Detecting C compile features
npm ERR! -- Detecting C compile features - done
npm ERR! -- Detecting CXX compiler ABI info
npm ERR! -- Detecting CXX compiler ABI info - done
npm ERR! -- Check for working CXX compiler: /usr/bin/c++ - skipped
npm ERR! -- Detecting CXX compile features
npm ERR! -- Detecting CXX compile features - done
npm ERR! -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
npm ERR! -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
npm ERR! -- Found Threads: TRUE
npm ERR! -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.a (found version "3.0.5")
npm ERR! -- Looking for include file sys/queue.h
npm ERR! -- Looking for include file sys/queue.h - found
npm ERR! -- Looking for include files sys/socket.h, linux/if_addr.h
npm ERR! -- Looking for include files sys/socket.h, linux/if_addr.h - found
npm ERR! -- Looking for include files sys/socket.h, linux/rtnetlink.h
npm ERR! -- Looking for include files sys/socket.h, linux/rtnetlink.h - found
npm ERR! -- Looking for 4 include files sys/types.h, ..., netinet/ip_icmp.h
npm ERR! -- Looking for 4 include files sys/types.h, ..., netinet/ip_icmp.h - found
npm ERR! -- Looking for 3 include files sys/types.h, ..., net/route.h
npm ERR! -- Looking for 3 include files sys/types.h, ..., net/route.h - found
npm ERR! -- Looking for include file stdatomic.h
npm ERR! -- Looking for include file stdatomic.h - found
npm ERR! -- Looking for usrsctp.h
npm ERR! -- Looking for usrsctp.h - found
npm ERR! -- Performing Test have_sa_len
npm ERR! -- Performing Test have_sa_len - Failed
npm ERR! -- Performing Test have_sin_len
npm ERR! -- Performing Test have_sin_len - Failed
npm ERR! -- Performing Test have_sin6_len
npm ERR! -- Performing Test have_sin6_len - Failed
npm ERR! -- Performing Test have_sconn_len
npm ERR! -- Performing Test have_sconn_len - Failed
npm ERR! -- Performing Test has_wfloat_equal
npm ERR! -- Performing Test has_wfloat_equal - Success
npm ERR! -- Performing Test has_wshadow
npm ERR! -- Performing Test has_wshadow - Success
npm ERR! -- Performing Test has_wpointer_aritih
npm ERR! -- Performing Test has_wpointer_aritih - Success
npm ERR! -- Performing Test has_wunreachable_code
npm ERR! -- Performing Test has_wunreachable_code - Success
npm ERR! -- Performing Test has_winit_self
npm ERR! -- Performing Test has_winit_self - Success
npm ERR! -- Performing Test has_wno_unused_function
npm ERR! -- Performing Test has_wno_unused_function - Success
npm ERR! -- Performing Test has_wno_unused_parameter
npm ERR! -- Performing Test has_wno_unused_parameter - Success
npm ERR! -- Performing Test has_wno_unreachable_code
npm ERR! -- Performing Test has_wno_unreachable_code - Success
npm ERR! -- Performing Test has_wstrict_prototypes
npm ERR! -- Performing Test has_wstrict_prototypes - Success
npm ERR! -- Compiler flags (CMAKE_C_FLAGS):  -std=c99 -pedantic -Wall -Wextra -Wfloat-equal -Wshadow -Wpointer-arith -Wunreachable-code -Winit-self -Wno-unused-function -Wno-unused-parameter -Wno-unreachable-code -Wstrict-prototypes -Werror
npm ERR! -- Performing Test has_wno_address_of_packed_member
npm ERR! -- Performing Test has_wno_address_of_packed_member - Success
npm ERR! -- Performing Test has_wno_deprecated_declarations
npm ERR! -- Performing Test has_wno_deprecated_declarations - Success
npm ERR! -- Looking for arpa/inet.h
npm ERR! -- Looking for arpa/inet.h - found
npm ERR! -- Looking for byteswap.h
npm ERR! -- Looking for byteswap.h - found
npm ERR! -- Looking for inttypes.h
npm ERR! -- Looking for inttypes.h - found
npm ERR! -- Looking for machine/types.h
npm ERR! -- Looking for machine/types.h - not found
npm ERR! -- Looking for netinet/in.h
npm ERR! -- Looking for netinet/in.h - found
npm ERR! -- Looking for stdint.h
npm ERR! -- Looking for stdint.h - found
npm ERR! -- Looking for stdlib.h
npm ERR! -- Looking for stdlib.h - found
npm ERR! -- Looking for sys/int_types.h
npm ERR! -- Looking for sys/int_types.h - not found
npm ERR! -- Looking for sys/socket.h
npm ERR! -- Looking for sys/socket.h - found
npm ERR! -- Looking for sys/types.h
npm ERR! -- Looking for sys/types.h - found
npm ERR! -- Looking for unistd.h
npm ERR! -- Looking for unistd.h - found
npm ERR! -- Looking for windows.h
npm ERR! -- Looking for windows.h - not found
npm ERR! -- Looking for winsock2.h
npm ERR! -- Looking for winsock2.h - not found
npm ERR! -- Looking for sigaction
npm ERR! -- Looking for sigaction - found
npm ERR! -- Looking for inet_aton
npm ERR! -- Looking for inet_aton - found
npm ERR! -- Looking for usleep
npm ERR! -- Looking for usleep - found
npm ERR! -- Looking for stddef.h
npm ERR! -- Looking for stddef.h - found
npm ERR! -- Check size of uint8_t
npm ERR! -- Check size of uint8_t - done
npm ERR! -- Check size of uint16_t
npm ERR! -- Check size of uint16_t - done
npm ERR! -- Check size of uint32_t
npm ERR! -- Check size of uint32_t - done
npm ERR! -- Check size of uint64_t
npm ERR! -- Check size of uint64_t - done
npm ERR! -- Check size of int32_t
npm ERR! -- Check size of int32_t - done
npm ERR! -- Check size of unsigned long
npm ERR! -- Check size of unsigned long - done
npm ERR! -- Check size of unsigned long long
npm ERR! -- Check size of unsigned long long - done
npm ERR! -- Performing Test HAVE_INLINE
npm ERR! -- Performing Test HAVE_INLINE - Success
npm ERR! -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
npm ERR! -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
npm ERR! -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
npm ERR! -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
npm ERR! -- Performing Test COMPILER_HAS_DEPRECATED_ATTR
npm ERR! -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
npm ERR! -- Using the single-header code from /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/deps/json/single_include/
npm ERR! -- Configuring done
npm ERR! -- Generating done
npm ERR! -- Build files have been written to: /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build
npm ERR! [  2%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/addr.c.o
npm ERR! [  2%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/agent.c.o
npm ERR! [  4%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/crc32.c.o
npm ERR! [  4%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/const_time.c.o
npm ERR! [  4%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/conn.c.o
npm ERR! [  6%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/conn_poll.c.o
npm ERR! [  6%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/conn_thread.c.o
npm ERR! [  6%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/conn_mux.c.o
npm ERR! [  8%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/base64.c.o
npm ERR! [  8%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/hash.c.o
npm ERR! [ 10%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/hmac.c.o
npm ERR! [ 10%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/ice.c.o
npm ERR! [ 10%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/juice.c.o
npm ERR! [ 12%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/log.c.o
npm ERR! [ 12%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/random.c.o
npm ERR! [ 12%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/server.c.o
npm ERR! [ 14%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/stun.c.o
npm ERR! [ 14%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/timestamp.c.o
npm ERR! [ 14%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/turn.c.o
npm ERR! [ 17%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/udp.c.o
npm ERR! [ 17%] Linking C static library libjuice-static.a
npm ERR! [ 17%] Built target juice-static
npm ERR! [ 17%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_asconf.c.o
npm ERR! [ 17%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_auth.c.o
npm ERR! [ 19%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_bsd_addr.c.o
npm ERR! [ 19%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_callout.c.o
npm ERR! [ 21%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_cc_functions.c.o
npm ERR! [ 21%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_crc32.c.o
npm ERR! [ 21%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_indata.c.o
npm ERR! [ 23%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_input.c.o
npm ERR! [ 23%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_output.c.o
npm ERR! [ 23%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_pcb.c.o
npm ERR! [ 25%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_peeloff.c.o
npm ERR! [ 25%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_sha1.c.o
npm ERR! [ 25%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_ss_functions.c.o
npm ERR! [ 27%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_sysctl.c.o
npm ERR! [ 27%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_timer.c.o
npm ERR! [ 29%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_userspace.c.o
npm ERR! [ 29%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_usrreq.c.o
npm ERR! [ 29%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctputil.c.o
npm ERR! [ 31%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet6/sctp6_usrreq.c.o
npm ERR! [ 31%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/user_environment.c.o
npm ERR! [ 31%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/user_mbuf.c.o
npm ERR! [ 34%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/user_recv_thread.c.o
npm ERR! [ 34%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/user_socket.c.o
npm ERR! [ 36%] Linking C static library libusrsctp.a
npm ERR! [ 36%] Built target usrsctp
npm ERR! [ 36%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/srtp/srtp.c.o
npm ERR! [ 38%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/cipher/cipher.c.o
npm ERR! [ 38%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/cipher/cipher_test_cases.c.o
npm ERR! [ 38%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/cipher/null_cipher.c.o
npm ERR! [ 40%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/cipher/aes_icm_ossl.c.o
npm ERR! [ 40%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/cipher/aes_gcm_ossl.c.o
npm ERR! [ 40%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/hash/auth.c.o
npm ERR! [ 42%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/hash/auth_test_cases.c.o
npm ERR! [ 42%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/hash/null_auth.c.o
npm ERR! [ 44%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/hash/hmac_ossl.c.o
npm ERR! [ 44%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/kernel/alloc.c.o
npm ERR! [ 44%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/kernel/crypto_kernel.c.o
npm ERR! [ 46%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/kernel/err.c.o
npm ERR! [ 46%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/kernel/key.c.o
npm ERR! [ 46%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/math/datatypes.c.o
npm ERR! [ 48%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/replay/rdb.c.o
npm ERR! [ 48%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/replay/rdbx.c.o
npm ERR! [ 51%] Linking C static library libsrtp2.a
npm ERR! [ 51%] Built target srtp2
npm ERR! [ 51%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/candidate.cpp.o
npm ERR! [ 53%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/channel.cpp.o
npm ERR! [ 53%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/configuration.cpp.o
npm ERR! [ 53%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/datachannel.cpp.o
npm ERR! prebuild-install WARN install No prebuilt binaries found (target=18.7.0 runtime=node arch=x64 libc= platform=linux)
npm ERR! npm WARN deprecated [email protected]: this library is no longer supported
npm ERR! npm WARN deprecated [email protected]: 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.
npm ERR! npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm ERR! npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm ERR! prebuild info begin Prebuild version 11.0.4
npm ERR! prebuild info build Preparing to prebuild [email protected] for node 18.7.0 on linux-x64 using cmake-js
npm ERR! info TOOL Using Unix Makefiles generator.
npm ERR! info CMD CLEAN
npm ERR! info RUN [
npm ERR! info RUN   'cmake',
npm ERR! info RUN   '-E',
npm ERR! info RUN   'remove_directory',
npm ERR! info RUN   '/usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build'
npm ERR! info RUN ]
npm ERR! info CMD CONFIGURE
npm ERR! info RUN [
npm ERR! info RUN   'cmake',
npm ERR! info RUN   '/usr/local/lib/node_modules/ironfish/node_modules/node-datachannel',
npm ERR! info RUN   '--no-warn-unused-cli',
npm ERR! info RUN   '-G',
npm ERR! info RUN   'Unix Makefiles',
npm ERR! info RUN   '-DCMAKE_JS_VERSION=6.3.2',
npm ERR! info RUN   '-DCMAKE_BUILD_TYPE=Release',
npm ERR! info RUN   '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/Release',
npm ERR! info RUN   '-DCMAKE_JS_INC=/root/.cmake-js/node-x64/v18.7.0/include/node;/usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/node_modules/nan',
npm ERR! info RUN   '-DCMAKE_JS_SRC=',
npm ERR! info RUN   '-DNODE_RUNTIME=node',
npm ERR! info RUN   '-DNODE_RUNTIMEVERSION=18.7.0',
npm ERR! info RUN   '-DNODE_ARCH=x64'
npm ERR! info RUN ]
npm ERR! info CMD BUILD
npm ERR! info RUN [
npm ERR! info RUN   'cmake',
npm ERR! info RUN   '--build',
npm ERR! info RUN   '/usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build',
npm ERR! info RUN   '--config',
npm ERR! info RUN   'Release'
npm ERR! info RUN ]
npm ERR! /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/deps/libjuice/src/conn_poll.c: In function ‘conn_poll_process’:
npm ERR! /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/deps/libjuice/src/conn_poll.c:272:28: warning: ‘ret’ may be used uninitialized [-Wmaybe-uninitialized]
npm ERR!   272 |                         if (ret < 0) {
npm ERR!       |                            ^
npm ERR! /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/deps/libjuice/src/conn_poll.c:259:29: note: ‘ret’ was declared here
npm ERR!   259 |                         int ret;
npm ERR!       |                             ^~~
npm ERR! In file included from /root/.cmake-js/node-x64/v18.7.0/include/node/openssl/././archs/linux-x86_64/asm/include/openssl/ssl.h:31,
npm ERR!                  from /root/.cmake-js/node-x64/v18.7.0/include/node/openssl/./ssl_asm.h:11,
npm ERR!                  from /root/.cmake-js/node-x64/v18.7.0/include/node/openssl/ssl.h:4,
npm ERR!                  from /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/src/impl/tls.hpp:56,
npm ERR!                  from /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/src/impl/certificate.hpp:24,
npm ERR!                  from /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/src/impl/dtlstransport.hpp:22,
npm ERR!                  from /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/src/impl/peerconnection.hpp:24,
npm ERR!                  from /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/src/impl/datachannel.hpp:25,
npm ERR!                  from /usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/build/_deps/libdatachannel-src/src/datachannel.cpp:23:
npm ERR! /root/.cmake-js/node-x64/v18.7.0/include/node/openssl/x509.h:4:11: fatal error: ./x509_asm.h: Datei oder Verzeichnis nicht gefunden
npm ERR!     4 | # include "./x509_asm.h"
npm ERR!       |           ^~~~~~~~~~~~~~
npm ERR! compilation terminated.
npm ERR! gmake[2]: *** [_deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/build.make:118: _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/datachannel.cpp.o] Fehler 1
npm ERR! gmake[1]: *** [CMakeFiles/Makefile2:372: _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/all] Fehler 2
npm ERR! gmake: *** [Makefile:136: all] Fehler 2
npm ERR! ERR! OMG Process terminated: 2
npm ERR! prebuild ERR! build Error: Failed to build cmake with exit code 1
npm ERR! prebuild ERR! build     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/ironfish/node_modules/node-datachannel/node_modules/prebuild/cmakebuild.js:32:19)
npm ERR! prebuild ERR! build     at ChildProcess.emit (node:events:513:28)
npm ERR! prebuild ERR! build     at ChildProcess._handle.onexit (node:internal/child_process:291:12)

npm ERR! A complete log of this run can be found in:

Relevant log output

No response

Graffiti

No response

jkdi avatar Sep 17 '22 07:09 jkdi

use LTS node version 16.17.1 instead of latest 18.x

belgeran avatar Sep 27 '22 06:09 belgeran

Correct, the error message isn't very clear, but the start of it describes it. You'll need to use Node.js v16 instead of v18.

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '[email protected]',
npm WARN EBADENGINE required: { node: '16.x' },
npm WARN EBADENGINE current: { node: 'v18.7.0', npm: '8.18.0' }
npm WARN EBADENGINE }

dguenther avatar Nov 10 '22 17:11 dguenther