httptoolkit/httptoolkit-server

Can't install

Closed this issue · 2 comments

Hello guys can you help me to install it

npm WARN EBADENGINE   package: 'httptoolkit-server@1.16.0',
npm WARN EBADENGINE   required: { node: 'v20.11.1' },
npm WARN EBADENGINE   current: { node: 'v18.19.1', npm: '9.2.0' }
npm WARN EBADENGINE }
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 har-validator@5.1.3: this library is no longer supported
npm 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.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated cli-ux@5.6.7: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
(##################) ⠦ reify:typescript: timing reifyNode:node_modules/es-abstract Completed in 10742ms
npm ERR! code 2
npm ERR! path /root/httptoolkit/httptoolkit-server/node_modules/node-datachannel
npm ERR! command failed
npm ERR! command sh -c prebuild-install || (npm install --ignore-scripts --production=false && npm run _prebuild)
npm ERR! added 597 packages, removed 2 packages, changed 1 package, and audited 654 packages in 27s
npm ERR! 
npm ERR! 69 packages are looking for funding
npm ERR!   run `npm fund` for details
npm ERR! 
npm ERR! 11 vulnerabilities (7 moderate, 4 high)
npm ERR! 
npm ERR! To address issues that do not require attention, run:
npm ERR!   npm audit fix
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! > node-datachannel@0.4.3 _prebuild
npm ERR! > prebuild --backend cmake-js
npm ERR! 
npm ERR! [
npm ERR!   '/usr/bin/node',
npm ERR!   '/root/httptoolkit/httptoolkit-server/node_modules/node-datachannel/node_modules/.bin/cmake-js',
npm ERR!   'rebuild',
npm ERR!   '--runtime-version=18.19.1',
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 13.2.0
npm ERR! -- The CXX compiler identification is GNU 13.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.13")  
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 inet_pton
npm ERR! -- Looking for inet_pton - 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! -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.a (found suitable version "3.0.13", minimum required is "1.1.0")  
npm ERR! -- Could NOT find PCAP (missing: PCAP_LIBRARY) 
npm ERR! -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.a (found version "3.0.13")  
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 /root/httptoolkit/httptoolkit-server/node_modules/node-datachannel/build/_deps/libdatachannel-src/deps/json/single_include/
npm ERR! -- Configuring done (45.0s)
npm ERR! -- Generating done (0.2s)
npm ERR! -- Build files have been written to: /root/httptoolkit/httptoolkit-server/node_modules/node-datachannel/build
npm ERR! [  0%] 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! [  2%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/crc32.c.o
npm ERR! [  2%] 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! [  4%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/conn_poll.c.o
npm ERR! [  4%] 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! [  6%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/base64.c.o
npm ERR! [  6%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/hash.c.o
npm ERR! [  8%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/hmac.c.o
npm ERR! [  8%] 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! [ 10%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/log.c.o
npm ERR! [ 10%] 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! [ 12%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/stun.c.o
npm ERR! [ 12%] 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! [ 14%] Building C object _deps/libdatachannel-build/deps/libjuice/CMakeFiles/juice-static.dir/src/udp.c.o
npm ERR! [ 14%] Linking C static library libjuice-static.a
npm ERR! [ 14%] Built target juice-static
npm ERR! [ 14%] 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! [ 17%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_bsd_addr.c.o
npm ERR! [ 17%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_callout.c.o
npm ERR! [ 19%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_cc_functions.c.o
npm ERR! [ 19%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_crc32.c.o
npm ERR! [ 19%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_indata.c.o
npm ERR! [ 21%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_input.c.o
npm ERR! [ 21%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_output.c.o
npm ERR! [ 21%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_pcb.c.o
npm ERR! [ 23%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_peeloff.c.o
npm ERR! [ 23%] 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! [ 25%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_sysctl.c.o
npm ERR! [ 25%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_timer.c.o
npm ERR! [ 27%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_userspace.c.o
npm ERR! [ 27%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctp_usrreq.c.o
npm ERR! [ 27%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet/sctputil.c.o
npm ERR! [ 29%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/netinet6/sctp6_usrreq.c.o
npm ERR! [ 29%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/user_environment.c.o
npm ERR! [ 29%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/user_mbuf.c.o
npm ERR! [ 31%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/user_recv_thread.c.o
npm ERR! [ 31%] Building C object _deps/libdatachannel-build/deps/usrsctp/usrsctplib/CMakeFiles/usrsctp.dir/user_socket.c.o
npm ERR! [ 34%] Linking C static library libusrsctp.a
npm ERR! [ 34%] Built target usrsctp
npm ERR! [ 34%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/srtp/srtp.c.o
npm ERR! [ 36%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/cipher/cipher.c.o
npm ERR! [ 36%] 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! [ 38%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/cipher/aes_icm_ossl.c.o
npm ERR! [ 38%] 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! [ 40%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/hash/auth_test_cases.c.o
npm ERR! [ 40%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/hash/null_auth.c.o
npm ERR! [ 42%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/hash/hmac_ossl.c.o
npm ERR! [ 42%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/kernel/alloc.c.o
npm ERR! [ 42%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/kernel/crypto_kernel.c.o
npm ERR! [ 44%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/kernel/err.c.o
npm ERR! [ 44%] 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! [ 46%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/replay/rdb.c.o
npm ERR! [ 46%] Building C object _deps/libdatachannel-build/deps/libsrtp/CMakeFiles/srtp2.dir/crypto/replay/rdbx.c.o
npm ERR! [ 48%] Linking C static library libsrtp2.a
npm ERR! [ 48%] Built target srtp2
npm ERR! [ 48%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/candidate.cpp.o
npm ERR! [ 51%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/channel.cpp.o
npm ERR! [ 51%] 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! [ 53%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/description.cpp.o
npm ERR! [ 53%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/global.cpp.o
npm ERR! [ 55%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/message.cpp.o
npm ERR! [ 55%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/peerconnection.cpp.o
npm ERR! [ 55%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/rtcpreceivingsession.cpp.o
npm ERR! [ 57%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/track.cpp.o
npm ERR! [ 57%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/websocket.cpp.o
npm ERR! [ 57%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/websocketserver.cpp.o
npm ERR! [ 59%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/rtppacketizationconfig.cpp.o
npm ERR! [ 59%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/rtcpsrreporter.cpp.o
npm ERR! [ 61%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/rtppacketizer.cpp.o
npm ERR! [ 61%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/opusrtppacketizer.cpp.o
npm ERR! [ 61%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/opuspacketizationhandler.cpp.o
npm ERR! [ 63%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/h264rtppacketizer.cpp.o
npm ERR! [ 63%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/nalunit.cpp.o
npm ERR! [ 63%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/h264packetizationhandler.cpp.o
npm ERR! [ 65%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/mediachainablehandler.cpp.o
npm ERR! [ 65%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/mediahandlerelement.cpp.o
npm ERR! [ 65%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/mediahandlerrootelement.cpp.o
npm ERR! [ 68%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/rtcpnackresponder.cpp.o
npm ERR! [ 68%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/rtp.cpp.o
npm ERR! [ 70%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/capi.cpp.o
npm ERR! [ 70%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/certificate.cpp.o
npm ERR! [ 70%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/channel.cpp.o
npm ERR! [ 72%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/datachannel.cpp.o
npm ERR! [ 72%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/dtlssrtptransport.cpp.o
npm ERR! [ 72%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/dtlstransport.cpp.o
npm ERR! [ 74%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/icetransport.cpp.o
npm ERR! [ 74%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/init.cpp.o
npm ERR! [ 74%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/peerconnection.cpp.o
npm ERR! [ 76%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/logcounter.cpp.o
npm ERR! [ 76%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/sctptransport.cpp.o
npm ERR! [ 78%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/threadpool.cpp.o
npm ERR! [ 78%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/tls.cpp.o
npm ERR! [ 78%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/track.cpp.o
npm ERR! [ 80%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/utils.cpp.o
npm ERR! [ 80%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/processor.cpp.o
npm ERR! [ 80%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/sha.cpp.o
npm ERR! [ 82%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/pollinterrupter.cpp.o
npm ERR! [ 82%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/pollservice.cpp.o
npm ERR! [ 82%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/tcpserver.cpp.o
npm ERR! [ 85%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/tcptransport.cpp.o
npm ERR! [ 85%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/tlstransport.cpp.o
npm ERR! [ 87%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/transport.cpp.o
npm ERR! [ 87%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/verifiedtlstransport.cpp.o
npm ERR! [ 87%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/websocket.cpp.o
npm ERR! [ 89%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/websocketserver.cpp.o
npm ERR! [ 89%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/wstransport.cpp.o
npm ERR! [ 89%] Building CXX object _deps/libdatachannel-build/CMakeFiles/datachannel-static.dir/src/impl/wshandshake.cpp.o
npm ERR! [ 91%] Linking CXX static library libdatachannel-static.a
npm ERR! [ 91%] Built target datachannel-static
npm ERR! [ 91%] Building CXX object CMakeFiles/node_datachannel.dir/src/rtc-wrapper.cpp.o
npm ERR! [ 91%] Building CXX object CMakeFiles/node_datachannel.dir/src/media-direction.cpp.o
npm ERR! [ 93%] Building CXX object CMakeFiles/node_datachannel.dir/src/media-rtcpreceivingsession-wrapper.cpp.o
npm ERR! [ 93%] Building CXX object CMakeFiles/node_datachannel.dir/src/media-track-wrapper.cpp.o
npm ERR! [ 93%] Building CXX object CMakeFiles/node_datachannel.dir/src/media-audio-wrapper.cpp.o
npm ERR! [ 95%] Building CXX object CMakeFiles/node_datachannel.dir/src/media-video-wrapper.cpp.o
npm ERR! [ 95%] Building CXX object CMakeFiles/node_datachannel.dir/src/data-channel-wrapper.cpp.o
npm ERR! [ 97%] Building CXX object CMakeFiles/node_datachannel.dir/src/peer-connection-wrapper.cpp.o
npm ERR! [ 97%] Building CXX object CMakeFiles/node_datachannel.dir/src/thread-safe-callback.cpp.o
npm ERR! prebuild-install WARN install No prebuilt binaries found (target=18.19.1 runtime=node arch=x64 libc= platform=linux)
npm ERR! npm WARN config production Use `--omit=dev` instead.
npm ERR! npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm ERR! npm WARN deprecated osenv@0.1.5: This package is no longer supported.
npm ERR! npm WARN deprecated npmlog@2.0.4: This package is no longer supported.
npm ERR! npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
npm ERR! npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
npm ERR! npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
npm ERR! npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
npm ERR! npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm ERR! npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm ERR! npm WARN deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead
npm ERR! npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm ERR! npm WARN deprecated are-we-there-yet@1.0.6: This package is no longer supported.
npm ERR! npm WARN deprecated are-we-there-yet@1.1.7: This package is no longer supported.
npm ERR! npm WARN deprecated gauge@1.2.7: This package is no longer supported.
npm ERR! npm WARN deprecated domexception@2.0.1: Use your platform's native DOMException instead
npm ERR! npm WARN deprecated glob@5.0.15: Glob versions prior to v9 are no longer supported
npm ERR! npm WARN deprecated npmlog@1.2.1: This package is no longer supported.
npm ERR! npm WARN deprecated npmlog@1.2.1: This package is no longer supported.
npm ERR! npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
npm ERR! npm 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.
npm ERR! npm WARN deprecated fstream@1.0.12: This package is no longer supported.
npm ERR! npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm ERR! npm WARN deprecated tar@2.2.2: 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 node-datachannel@0.4.3 for node 18.19.1 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   '/root/httptoolkit/httptoolkit-server/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   '/root/httptoolkit/httptoolkit-server/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=/root/httptoolkit/httptoolkit-server/node_modules/node-datachannel/build/Release',
npm ERR! info RUN   '-DCMAKE_JS_INC=/root/.cmake-js/node-x64/v18.19.1/include/node;/root/httptoolkit/httptoolkit-server/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.19.1',
npm ERR! info RUN   '-DNODE_ARCH=x64'
npm ERR! info RUN ]
npm ERR! CMake Deprecation Warning at build/_deps/libdatachannel-src/deps/plog/CMakeLists.txt:1 (cmake_minimum_required):
npm ERR!   Compatibility with CMake < 3.5 will be removed from a future version of
npm ERR!   CMake.
npm ERR! 
npm ERR!   Update the VERSION argument <min> value or use a ...<max> suffix to tell
npm ERR!   CMake that the project does not need compatibility with older versions.
npm ERR! 
npm ERR! 
npm ERR! CMake Deprecation Warning at build/_deps/libdatachannel-src/deps/usrsctp/CMakeLists.txt:33 (cmake_minimum_required):
npm ERR!   Compatibility with CMake < 3.5 will be removed from a future version of
npm ERR!   CMake.
npm ERR! 
npm ERR!   Update the VERSION argument <min> value or use a ...<max> suffix to tell
npm ERR!   CMake that the project does not need compatibility with older versions.
npm ERR! 
npm ERR! 
npm ERR! CMake Deprecation Warning at build/_deps/libdatachannel-src/deps/json/CMakeLists.txt:1 (cmake_minimum_required):
npm ERR!   Compatibility with CMake < 3.5 will be removed from a future version of
npm ERR!   CMake.
npm ERR! 
npm ERR!   Update the VERSION argument <min> value or use a ...<max> suffix to tell
npm ERR!   CMake that the project does not need compatibility with older versions.
npm ERR! 
npm ERR! 
npm ERR! info CMD BUILD
npm ERR! info RUN [
npm ERR! info RUN   'cmake',
npm ERR! info RUN   '--build',
npm ERR! info RUN   '/root/httptoolkit/httptoolkit-server/node_modules/node-datachannel/build',
npm ERR! info RUN   '--config',
npm ERR! info RUN   'Release'
npm ERR! info RUN ]
npm ERR! /root/httptoolkit/httptoolkit-server/node_modules/node-datachannel/build/_deps/libdatachannel-src/deps/libjuice/src/agent.c: In function ‘agent_bookkeeping’:
npm ERR! /root/httptoolkit/httptoolkit-server/node_modules/node-datachannel/build/_deps/libdatachannel-src/deps/libjuice/src/agent.c:1043:56: warning: ‘selected_pair’ may be used uninitialized [-Wmaybe-uninitialized]
npm ERR!  1043 |                         *next_timestamp = selected_pair->consent_expiry;
npm ERR!       |                                           ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
npm ERR! /root/httptoolkit/httptoolkit-server/node_modules/node-datachannel/build/_deps/libdatachannel-src/deps/libjuice/src/agent.c:875:31: note: ‘selected_pair’ was declared here
npm ERR!   875 |         ice_candidate_pair_t *selected_pair = NULL;
npm ERR!       |                               ^~~~~~~~~~~~~
npm ERR! /root/httptoolkit/httptoolkit-server/node_modules/node-datachannel/src/thread-safe-callback.cpp: In member function ‘void ThreadSafeCallback::call(arg_func_t)’:
npm ERR! /root/httptoolkit/httptoolkit-server/node_modules/node-datachannel/src/thread-safe-callback.cpp:39:20: error: ‘runtime_error’ is not a member of ‘std’
npm ERR!    39 |         throw std::runtime_error("Failed to call JavaScript callback");
npm ERR!       |                    ^~~~~~~~~~~~~
npm ERR! /root/httptoolkit/httptoolkit-server/node_modules/node-datachannel/src/thread-safe-callback.cpp:2:1: note: ‘std::runtime_error’ is defined in header ‘<stdexcept>’; did you forget to ‘#include <stdexcept>’?
npm ERR!     1 | #include "thread-safe-callback.h"
npm ERR!   +++ |+#include <stdexcept>
npm ERR!     2 | 
npm ERR! gmake[2]: *** [CMakeFiles/node_datachannel.dir/build.make:188: CMakeFiles/node_datachannel.dir/src/thread-safe-callback.cpp.o] Error 1
npm ERR! gmake[1]: *** [CMakeFiles/Makefile2:316: CMakeFiles/node_datachannel.dir/all] Error 2
npm ERR! gmake: *** [Makefile:136: all] Error 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> (/root/httptoolkit/httptoolkit-server/node_modules/node-datachannel/node_modules/prebuild/cmakebuild.js:32:19)
npm ERR! prebuild ERR! build     at ChildProcess.emit (node:events:517:28)
npm ERR! prebuild ERR! build     at ChildProcess._handle.onexit (node:internal/child_process:292:12)

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2024-06-09T12_03_02_928Z-debug-0.log```

See the EBADENGINE warning shown at the start here: the main problem is that you're using an unsupported version of node, and you should run the server with Node v20 instead. The only officially supported Node version is the exact version specified here (currently v20.11.1) which is what's used in the production releases, but any other similar version (any v20.* version) should work just the same as far as I know.

The rest of this error is because you're failing to build a native module in one of the dependencies. This would be resolvable if you correctly install the Node.js build environment (in which case you can probably use Node 18 if you want, or many other versions) but the current compilation is failing for some reason. It's hard to know exactly what would cause that on your machine. If you use the correct Node version though then this shouldn't happen, as all dependencies include prebuilt binaries for at least that version, so that will be downloaded directly and no compilation is required. Does that make sense?

Oh yes my bad
thank you