Error trying to npm install #discordjs.opus - node.js

I'm working on a discord bot where I need to install #discordjs/opus. When I try installing it I get an error message.
I've been searching for solutions to the error but most of what I find is people not having python installed. I have python 3.10.8 installed and it's being found but I'm still not able to install the package.
Here are some extra details:
Node.js version: v16.17.0
NPM version: 8.15.0
Python version: 3.10.8
OS: MacOS Ventura 13.1
This is the error I'm getting
npm ERR! code 1
npm ERR! path /Users/johnalban/Documents/codingStuff/Personal projects/Discord-bot/node_modules/#discordjs/opus
npm ERR! command failed
npm ERR! command sh /var/folders/v9/tssb2ckj5vb394w6nqj07x8h0000gn/T/install-db9dedbe.sh
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/opus_multistream.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/opus_projection_encoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/analysis.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/mlp_data.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/opus_multistream_encoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/opus_projection_decoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/mapping_matrix.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/opus_compare.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/mlp.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/opus.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/opus_multistream_decoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/opus_decoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/repacketizer.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/opus_encoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/decode_frame.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/inner_product_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/scale_vector_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/find_pred_coefs_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/schur_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/warped_autocorrelation_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/burg_modified_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/find_LPC_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/LPC_inv_pred_gain_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/scale_copy_vector_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/noise_shape_analysis_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/pitch_analysis_core_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/bwexpander_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/LTP_analysis_filter_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/LTP_scale_ctrl_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/corrMatrix_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/encode_frame_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/sort_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/find_pitch_lags_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/residual_energy_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/LPC_analysis_filter_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/autocorrelation_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/k2a_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/regularize_correlations_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/find_LTP_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/energy_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/apply_sine_window_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/wrappers_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/process_gains_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/stereo_quant_pred.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/LPC_inv_pred_gain.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/process_NLSFs.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NSQ.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/check_control_input.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NLSF_del_dec_quant.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/LPC_analysis_filter.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/dec_API.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/resampler.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/sort.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/VAD.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/resampler_private_AR2.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/LPC_fit.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/control_SNR.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/decode_parameters.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/pitch_est_tables.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/warped_autocorrelation_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/apply_sine_window_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/residual_energy16_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/schur64_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/residual_energy_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/noise_shape_analysis_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/encode_frame_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/schur_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/autocorr_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/burg_modified_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/pitch_analysis_core_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/find_LTP_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/find_LPC_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/corrMatrix_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/k2a_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/LTP_scale_ctrl_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/process_gains_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/k2a_Q16_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/regularize_correlations_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/LTP_analysis_filter_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/vector_ops_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/find_pitch_lags_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/find_pred_coefs_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/control_audio_bandwidth.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/decoder_set_fs.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NLSF_unpack.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/bwexpander.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/resampler_rom.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/shell_coder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/decode_pulses.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/bwexpander_32.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/decode_core.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/PLC.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/tables_NLSF_CB_WB.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/table_LSF_cos.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/tables_pulses_per_block.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/tables_gain.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/inner_prod_aligned.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/resampler_down2_3.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NSQ_del_dec.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/decode_pitch.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NLSF_VQ_weights_laroia.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/interpolate.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/debug.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/tables_other.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/LP_variable_cutoff.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NLSF_decode.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/encode_pulses.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/control_codec.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/stereo_LR_to_MS.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/HP_variable_cutoff.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/encode_indices.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/init_decoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/stereo_encode_pred.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NLSF_VQ.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/init_encoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/resampler_private_IIR_FIR.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/resampler_private_up2_HQ.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/sigm_Q15.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/sum_sqr_shift.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/tables_LTP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/resampler_down2.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/code_signs.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/tables_NLSF_CB_NB_MB.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/gain_quant.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/tables_pitch_lag.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NLSF_stabilize.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/stereo_find_predictor.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/A2NLSF.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NLSF2A.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/VQ_WMat_EC.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NLSF_encode.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/log2lin.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/stereo_decode_pred.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/lin2log.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/CNG.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/enc_API.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/biquad_alt.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/quant_LTP_gains.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/resampler_private_down_FIR.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/ana_filt_bank_1.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/stereo_MS_to_LR.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/decode_indices.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/rate.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/entdec.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/modes.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/celt_lpc.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/laplace.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/cwrs.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/celt.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/entcode.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/celt_decoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/celt_encoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/mdct.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/quant_bands.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/vq.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/bands.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/kiss_fft.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/entenc.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/mathops.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/pitch.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/arm/arm_celt_map.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/arm/armcpu.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/arm/celt_neon_intr.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/arm/pitch_neon_intr.o
npm ERR! LIBTOOL-STATIC Release/opus.a
npm ERR! CXX(target) Release/obj.target/opus/src/node-opus.o
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=/Users/johnalban/Documents/codingStuff/Personal projects/Discord-bot/node_modules/#discordjs/opus/prebuild/node-v93-napi-v3-darwin-arm64-unknown-unknown/opus.node --module_name=opus --module_path=/Users/johnalban/Documents/codingStuff/Personal projects/Discord-bot/node_modules/#discordjs/opus/prebuild/node-v93-napi-v3-darwin-arm64-unknown-unknown --napi_version=8 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp#0.4.5
npm ERR! node-pre-gyp info using node#16.17.0 | darwin | arm64
npm ERR! node-pre-gyp info check checked for "/Users/johnalban/Documents/codingStuff/Personal projects/Discord-bot/node_modules/#discordjs/opus/prebuild/node-v93-napi-v3-darwin-arm64-unknown-unknown/opus.node" (not found)
npm ERR! node-pre-gyp http GET https://github.com/discordjs/opus/releases/download/v0.8.0/opus-v0.8.0-node-v93-napi-v3-darwin-arm64-unknown-unknown.tar.gz
npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/discordjs/opus/releases/download/v0.8.0/opus-v0.8.0-node-v93-napi-v3-darwin-arm64-unknown-unknown.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for #discordjs/opus#0.8.0 and node#16.17.0 (node-v93 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/discordjs/opus/releases/download/v0.8.0/opus-v0.8.0-node-v93-napi-v3-darwin-arm64-unknown-unknown.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#9.0.0
npm ERR! gyp info using node#16.17.0 | darwin | arm64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#9.0.0
npm ERR! gyp info using node#16.17.0 | darwin | arm64
npm ERR! gyp info find Python using Python version 3.10.8 found at "/opt/homebrew/opt/python#3.10/bin/python3.10"
npm ERR! gyp info spawn /opt/homebrew/opt/python#3.10/bin/python3.10
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/johnalban/Documents/codingStuff/Personal projects/Discord-bot/node_modules/#discordjs/opus/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/johnalban/Library/Caches/node-gyp/16.17.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/johnalban/Library/Caches/node-gyp/16.17.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/johnalban/Library/Caches/node-gyp/16.17.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/johnalban/Documents/codingStuff/Personal projects/Discord-bot/node_modules/#discordjs/opus',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#9.0.0
npm ERR! gyp info using node#16.17.0 | darwin | arm64
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ../deps/opus/silk/fixed/autocorr_FIX.c:47:29: warning: incompatible pointer types passing 'const opus_int16 *' (aka 'const short *') to parameter of type 'const opus_val16 *' (aka 'const float *') [-Wincompatible-pointer-types]
npm ERR! *scale = _celt_autocorr(inputData, results, NULL, 0, corrCount-1, inputDataSize, arch);
npm ERR! ^~~~~~~~~
npm ERR! ../deps/opus/celt/celt_lpc.h:63:38: note: passing argument to parameter 'x' here
npm ERR! int _celt_autocorr(const opus_val16 *x, opus_val32 *ac,
npm ERR! ^
npm ERR! ../deps/opus/silk/fixed/autocorr_FIX.c:47:40: warning: incompatible pointer types passing 'opus_int32 *' (aka 'int *') to parameter of type 'opus_val32 *' (aka 'float *') [-Wincompatible-pointer-types]
npm ERR! *scale = _celt_autocorr(inputData, results, NULL, 0, corrCount-1, inputDataSize, arch);
npm ERR! ^~~~~~~
npm ERR! ../deps/opus/celt/celt_lpc.h:63:53: note: passing argument to parameter 'ac' here
npm ERR! int _celt_autocorr(const opus_val16 *x, opus_val32 *ac,
npm ERR! ^
npm ERR! 2 warnings generated.
npm ERR! ../deps/opus/silk/fixed/burg_modified_FIX.c:98:30: warning: incompatible pointer types passing 'const opus_int16 *' (aka 'const short *') to parameter of type 'const opus_val16 *' (aka 'const float *') [-Wincompatible-pointer-types]
npm ERR! celt_pitch_xcorr(x_ptr, x_ptr + 1, xcorr, subfr_length - D, D, arch );
npm ERR! ^~~~~
npm ERR! ../deps/opus/celt/arm/pitch_arm.h:136:52: note: passing argument to parameter '_x' here
npm ERR! void celt_pitch_xcorr_float_neon(const opus_val16 *_x, const opus_val16 *_y,
npm ERR! ^
npm ERR! ../deps/opus/silk/fixed/burg_modified_FIX.c:98:37: warning: incompatible pointer types passing 'const opus_int16 *' (aka 'const short *') to parameter of type 'const opus_val16 *' (aka 'const float *') [-Wincompatible-pointer-types]
npm ERR! celt_pitch_xcorr(x_ptr, x_ptr + 1, xcorr, subfr_length - D, D, arch );
npm ERR! ^~~~~~~~~
npm ERR! ../deps/opus/celt/arm/pitch_arm.h:136:74: note: passing argument to parameter '_y' here
npm ERR! void celt_pitch_xcorr_float_neon(const opus_val16 *_x, const opus_val16 *_y,
npm ERR! ^
npm ERR! ../deps/opus/silk/fixed/burg_modified_FIX.c:98:48: warning: incompatible pointer types passing 'opus_int32[24]' to parameter of type 'opus_val32 *' (aka 'float *') [-Wincompatible-pointer-types]
npm ERR! celt_pitch_xcorr(x_ptr, x_ptr + 1, xcorr, subfr_length - D, D, arch );
npm ERR! ^~~~~
npm ERR! ../deps/opus/celt/arm/pitch_arm.h:137:46: note: passing argument to parameter 'xcorr' here
npm ERR! opus_val32 *xcorr, int len, int max_pitch, int arch);
npm ERR! ^
npm ERR! 3 warnings generated.
npm ERR! ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c:200:27: warning: incompatible pointer types passing 'const opus_int16 *' (aka 'const short *') to parameter of type 'const opus_val16 *' (aka 'const float *') [-Wincompatible-pointer-types]
npm ERR! celt_pitch_xcorr( target_ptr, target_ptr - MAX_LAG_4KHZ, xcorr32, SF_LENGTH_8KHZ, MAX_LAG_4KHZ - MIN_LAG_4KHZ + 1, arch );
npm ERR! ^~~~~~~~~~
npm ERR! ../deps/opus/celt/arm/pitch_arm.h:136:52: note: passing argument to parameter '_x' here
npm ERR! void celt_pitch_xcorr_float_neon(const opus_val16 *_x, const opus_val16 *_y,
npm ERR! ^
npm ERR! ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c:200:39: warning: incompatible pointer types passing 'const opus_int16 *' (aka 'const short *') to parameter of type 'const opus_val16 *' (aka 'const float *') [-Wincompatible-pointer-types]
npm ERR! celt_pitch_xcorr( target_ptr, target_ptr - MAX_LAG_4KHZ, xcorr32, SF_LENGTH_8KHZ, MAX_LAG_4KHZ - MIN_LAG_4KHZ + 1, arch );
npm ERR! ^~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../deps/opus/celt/arm/pitch_arm.h:136:74: note: passing argument to parameter '_y' here
npm ERR! void celt_pitch_xcorr_float_neon(const opus_val16 *_x, const opus_val16 *_y,
npm ERR! ^
npm ERR! ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c:200:66: warning: incompatible pointer types passing 'opus_int32[65]' to parameter of type 'opus_val32 *' (aka 'float *') [-Wincompatible-pointer-types]
npm ERR! celt_pitch_xcorr( target_ptr, target_ptr - MAX_LAG_4KHZ, xcorr32, SF_LENGTH_8KHZ, MAX_LAG_4KHZ - MIN_LAG_4KHZ + 1, arch );
npm ERR! ^~~~~~~
npm ERR! ../deps/opus/celt/arm/pitch_arm.h:137:46: note: passing argument to parameter 'xcorr' here
npm ERR! opus_val32 *xcorr, int len, int max_pitch, int arch);
npm ERR! ^
npm ERR! ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c:616:27: warning: incompatible pointer types passing 'const opus_int16 *' (aka 'const short *') to parameter of type 'const opus_val16 *' (aka 'const float *') [-Wincompatible-pointer-types]
npm ERR! celt_pitch_xcorr( target_ptr, target_ptr - start_lag - lag_high, xcorr32, sf_length, lag_high - lag_low + 1, arch );
npm ERR! ^~~~~~~~~~
npm ERR! ../deps/opus/celt/arm/pitch_arm.h:136:52: note: passing argument to parameter '_x' here
npm ERR! void celt_pitch_xcorr_float_neon(const opus_val16 *_x, const opus_val16 *_y,
npm ERR! ^
npm ERR! ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c:616:39: warning: incompatible pointer types passing 'const opus_int16 *' (aka 'const short *') to parameter of type 'const opus_val16 *' (aka 'const float *') [-Wincompatible-pointer-types]
npm ERR! celt_pitch_xcorr( target_ptr, target_ptr - start_lag - lag_high, xcorr32, sf_length, lag_high - lag_low + 1, arch );
npm ERR! ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../deps/opus/celt/arm/pitch_arm.h:136:74: note: passing argument to parameter '_y' here
npm ERR! void celt_pitch_xcorr_float_neon(const opus_val16 *_x, const opus_val16 *_y,
npm ERR! ^
npm ERR! ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c:616:74: warning: incompatible pointer types passing 'opus_int32[22]' to parameter of type 'opus_val32 *' (aka 'float *') [-Wincompatible-pointer-types]
npm ERR! celt_pitch_xcorr( target_ptr, target_ptr - start_lag - lag_high, xcorr32, sf_length, lag_high - lag_low + 1, arch );
npm ERR! ^~~~~~~
npm ERR! ../deps/opus/celt/arm/pitch_arm.h:137:46: note: passing argument to parameter 'xcorr' here
npm ERR! opus_val32 *xcorr, int len, int max_pitch, int arch);
npm ERR! ^
npm ERR! 6 warnings generated.
npm ERR! ../deps/opus/celt/bands.c:904:85: warning: parameter 'b' set but not used [-Wunused-but-set-parameter]
npm ERR! static unsigned quant_band_n1(struct band_ctx *ctx, celt_norm *X, celt_norm *Y, int b,
npm ERR! ^
npm ERR! 1 warning generated.
npm ERR! clang: error: no such file or directory: 'projects/Discord-bot/node_modules/node-addon-api'
npm ERR! make: *** [Release/obj.target/opus/src/node-opus.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Darwin 22.2.0
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=/Users/johnalban/Documents/codingStuff/Personal projects/Discord-bot/node_modules/#discordjs/opus/prebuild/node-v93-napi-v3-darwin-arm64-unknown-unknown/opus.node" "--module_name=opus" "--module_path=/Users/johnalban/Documents/codingStuff/Personal projects/Discord-bot/node_modules/#discordjs/opus/prebuild/node-v93-napi-v3-darwin-arm64-unknown-unknown" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3"
npm ERR! gyp ERR! cwd /Users/johnalban/Documents/codingStuff/Personal projects/Discord-bot/node_modules/#discordjs/opus
npm ERR! gyp ERR! node -v v16.17.0
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
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=/Users/johnalban/Documents/codingStuff/Personal projects/Discord-bot/node_modules/#discordjs/opus/prebuild/node-v93-napi-v3-darwin-arm64-unknown-unknown/opus.node --module_name=opus --module_path=/Users/johnalban/Documents/codingStuff/Personal projects/Discord-bot/node_modules/#discordjs/opus/prebuild/node-v93-napi-v3-darwin-arm64-unknown-unknown --napi_version=8 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/johnalban/Documents/codingStuff/Personal projects/Discord-bot/node_modules/#discordjs/node-pre-gyp/lib/util/compile.js:85:20)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1093:16)
npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm ERR! node-pre-gyp ERR! System Darwin 22.2.0
npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/johnalban/Documents/codingStuff/Personal projects/Discord-bot/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd /Users/johnalban/Documents/codingStuff/Personal projects/Discord-bot/node_modules/#discordjs/opus
npm ERR! node-pre-gyp ERR! node -v v16.17.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.4.5
npm ERR! node-pre-gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/johnalban/.npm/_logs/2023-02-19T04_46_15_172Z-debug-0.log

Related

how can install local-npm for having offline registery and repo for npm

I would like to have offline npm registery (like local repository) for npm modules
so I search and realized local-npm is a good idea for this.
I tried to install it but I have some problem.
I have error in installing local-npm
my command is
npm install -g local-npm --unsafe-perm=true --allow-root
and my error is:
../../nan/nan_object_wrap.h:66:61: required from here
/home/itis/.cache/node-gyp/10.24.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
make: *** [leveldown.target.mk:119: Release/obj.target/leveldown/src/batch.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/local-npm/node_modules/leveldown/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:191:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.18.0-348.el8.x86_64
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/local-npm/node_modules/leveldown
gyp ERR! node -v v10.24.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! leveldown#1.7.2 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the leveldown#1.7.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/itis/.npm/_logs/2023-01-19T11_02_43_168Z-debug.log```

how to create package for electron upterm correctly

npm ERR! code 1
npm ERR! path /home/leonenco/Programs/upterm/node_modules/node-pty
npm ERR! command failed
npm ERR! command sh -c node scripts/install.js
npm ERR! make: Entering directory '/home/leonenco/Programs/upterm/node_modules/node-pty/build'
npm ERR! CXX(target) Release/obj.target/pty/src/unix/pty.o
npm ERR! make: Leaving directory '/home/leonenco/Programs/upterm/node_modules/node-pty/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#9.0.0
npm ERR! code 1
npm ERR! path /home/leonenco/Programs/upterm/node_modules/node-pty
npm ERR! command failed
npm ERR! command sh -c node scripts/install.js
npm ERR! make: Entering directory '/home/leonenco/Programs/upterm/node_modules/node-pty/build'
npm ERR! CXX(target) Release/obj.target/pty/src/unix/pty.o
npm ERR! make: Leaving directory '/home/leonenco/Programs/upterm/node_modules/node-pty/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#9.0.0

npm install #discord/js not working on amazon aws ec2 linux system

I'm hosting a discord bot on amazon aws ec2 but its giving me an error saying that it cant find opus modules like node-opus and #discordjs/opus so when I try installing with npm install #discordjs/opus it gives me a huge error. I've been trying to figure it out for a day but I can't understand why it installed and worked perfectly on windows but not on linux. The entire code and music player works on windows but on linux it can't install opus module.
error message:
npm ERR! code 1
npm ERR! path /home/ec2-user/app/Discord_MultiPurpose/node_modules/#discordjs/opus
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build
npm ERR! make: Entering directory `/home/ec2-user/app/Discord_MultiPurpose/node_modules/#discordjs/opus/build'
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/opus_multistream.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/opus_projection_encoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/analysis.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/mlp_data.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/opus_multistream_encoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/opus_projection_decoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/mapping_matrix.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/opus_compare.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/mlp.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/opus.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/opus_multistream_decoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/opus_decoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/repacketizer.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/src/opus_encoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/decode_frame.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/inner_product_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/scale_vector_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/find_pred_coefs_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/schur_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/warped_autocorrelation_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/burg_modified_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/find_LPC_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/LPC_inv_pred_gain_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/scale_copy_vector_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/noise_shape_analysis_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/pitch_analysis_core_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/bwexpander_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/LTP_analysis_filter_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/LTP_scale_ctrl_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/corrMatrix_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/encode_frame_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/sort_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/find_pitch_lags_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/residual_energy_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/LPC_analysis_filter_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/autocorrelation_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/k2a_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/regularize_correlations_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/find_LTP_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/energy_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/apply_sine_window_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/wrappers_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/float/process_gains_FLP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/stereo_quant_pred.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/LPC_inv_pred_gain.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/process_NLSFs.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NSQ.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/check_control_input.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NLSF_del_dec_quant.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/LPC_analysis_filter.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/dec_API.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/resampler.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/sort.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/VAD.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/resampler_private_AR2.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/LPC_fit.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/control_SNR.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/decode_parameters.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/pitch_est_tables.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/warped_autocorrelation_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/apply_sine_window_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/residual_energy16_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/schur64_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/residual_energy_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/noise_shape_analysis_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/encode_frame_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/schur_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/autocorr_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/burg_modified_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/pitch_analysis_core_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/find_LTP_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/find_LPC_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/corrMatrix_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/k2a_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/LTP_scale_ctrl_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/process_gains_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/k2a_Q16_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/regularize_correlations_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/LTP_analysis_filter_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/vector_ops_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/find_pitch_lags_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/fixed/find_pred_coefs_FIX.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/control_audio_bandwidth.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/decoder_set_fs.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NLSF_unpack.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/bwexpander.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/resampler_rom.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/shell_coder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/decode_pulses.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/bwexpander_32.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/decode_core.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/PLC.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/tables_NLSF_CB_WB.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/table_LSF_cos.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/tables_pulses_per_block.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/tables_gain.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/inner_prod_aligned.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/resampler_down2_3.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NSQ_del_dec.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/decode_pitch.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NLSF_VQ_weights_laroia.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/interpolate.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/debug.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/tables_other.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/LP_variable_cutoff.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NLSF_decode.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/encode_pulses.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/control_codec.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/stereo_LR_to_MS.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/HP_variable_cutoff.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/encode_indices.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/init_decoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/stereo_encode_pred.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NLSF_VQ.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/init_encoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/resampler_private_IIR_FIR.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/resampler_private_up2_HQ.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/sigm_Q15.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/sum_sqr_shift.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/tables_LTP.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/resampler_down2.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/code_signs.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/tables_NLSF_CB_NB_MB.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/gain_quant.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/tables_pitch_lag.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NLSF_stabilize.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/stereo_find_predictor.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/A2NLSF.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NLSF2A.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/VQ_WMat_EC.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/NLSF_encode.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/log2lin.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/stereo_decode_pred.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/lin2log.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/CNG.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/enc_API.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/biquad_alt.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/quant_LTP_gains.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/resampler_private_down_FIR.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/ana_filt_bank_1.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/stereo_MS_to_LR.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/silk/decode_indices.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/rate.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/entdec.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/modes.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/celt_lpc.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/laplace.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/cwrs.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/celt.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/entcode.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/celt_decoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/celt_encoder.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/mdct.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/quant_bands.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/vq.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/bands.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/kiss_fft.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/entenc.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/mathops.o
npm ERR! CC(target) Release/obj.target/libopus/deps/opus/celt/pitch.o
npm ERR! AR(target) Release/obj.target/deps/opus.a
npm ERR! COPY Release/opus.a
npm ERR! CXX(target) Release/obj.target/opus/src/node-opus.o
npm ERR! make: Leaving directory `/home/ec2-user/app/Discord_MultiPurpose/node_modules/#discordjs/opus/build'
npm ERR! Failed to execute '/home/ec2-user/.nvm/versions/node/v16.16.0/bin/node /home/ec2-user/.nvm/versions/node/v16.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/ec2-user/app/Discord_MultiPurpose/node_modules/#discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.26/opus.node --module_name=opus --module_path=/home/ec2-user/app/Discord_MultiPurpose/node_modules/#discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.26 --napi_version=8 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp#0.4.4
npm ERR! node-pre-gyp info using node#16.16.0 | linux | x64
npm ERR! node-pre-gyp info check checked for "/home/ec2-user/app/Discord_MultiPurpose/node_modules/#discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.26/opus.node" (not found)
npm ERR! node-pre-gyp http GET https://github.com/discordjs/opus/releases/download/v0.8.0/opus-v0.8.0-node-v93-napi-v3-linux-x64-glibc-2.26.tar.gz
npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/discordjs/opus/releases/download/v0.8.0/opus-v0.8.0-node-v93-napi-v3-linux-x64-glibc-2.26.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for #discordjs/opus#0.8.0 and node#16.16.0 (node-v93 ABI, glibc) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/discordjs/opus/releases/download/v0.8.0/opus-v0.8.0-node-v93-napi-v3-linux-x64-glibc-2.26.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#9.0.0
npm ERR! gyp info using node#16.16.0 | linux | x64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#9.0.0
npm ERR! gyp info using node#16.16.0 | linux | x64
npm ERR! gyp info find Python using Python version 3.7.10 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/home/ec2-user/.nvm/versions/node/v16.16.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/ec2-user/app/Discord_MultiPurpose/node_modules/#discordjs/opus/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/ec2-user/.nvm/versions/node/v16.16.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/ec2-user/.cache/node-gyp/16.16.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/home/ec2-user/.cache/node-gyp/16.16.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/ec2-user/.nvm/versions/node/v16.16.0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/ec2-user/.cache/node-gyp/16.16.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/ec2-user/app/Discord_MultiPurpose/node_modules/#discordjs/opus',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#9.0.0
npm ERR! gyp info using node#16.16.0 | linux | x64
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ../deps/opus/silk/fixed/autocorr_FIX.c: In function ‘silk_autocorr’:
npm ERR! ../deps/opus/silk/fixed/autocorr_FIX.c:47:29: warning: passing argument 1 of ‘_celt_autocorr’ from incompatible pointer type [-Wincompatible-pointer-types]
npm ERR! *scale = _celt_autocorr(inputData, results, NULL, 0, corrCount-1, inputDataSize, arch);
npm ERR! ^~~~~~~~~
npm ERR! In file included from ../deps/opus/silk/fixed/autocorr_FIX.c:33:0:
npm ERR! ../deps/opus/celt/celt_lpc.h:63:5: note: expected ‘const opus_val16 * {aka const float *}’ but argument is of type ‘const opus_int16 * {aka const short int *}’
npm ERR! int _celt_autocorr(const opus_val16 *x, opus_val32 *ac,
npm ERR! ^~~~~~~~~~~~~~
npm ERR! ../deps/opus/silk/fixed/autocorr_FIX.c:47:40: warning: passing argument 2 of ‘_celt_autocorr’ from incompatible pointer type [-Wincompatible-pointer-types]
npm ERR! *scale = _celt_autocorr(inputData, results, NULL, 0, corrCount-1, inputDataSize, arch);
npm ERR! ^~~~~~~
npm ERR! In file included from ../deps/opus/silk/fixed/autocorr_FIX.c:33:0:
npm ERR! ../deps/opus/celt/celt_lpc.h:63:5: note: expected ‘opus_val32 * {aka float *}’ but argument is of type ‘opus_int32 * {aka int *}’
npm ERR! int _celt_autocorr(const opus_val16 *x, opus_val32 *ac,
npm ERR! ^~~~~~~~~~~~~~
npm ERR! ../deps/opus/silk/fixed/burg_modified_FIX.c: In function ‘silk_burg_modified_c’:
npm ERR! ../deps/opus/silk/fixed/burg_modified_FIX.c:98:30: warning: passing argument 1 of ‘celt_pitch_xcorr_c’ from incompatible pointer type [-Wincompatible-pointer-types]
npm ERR! celt_pitch_xcorr(x_ptr, x_ptr + 1, xcorr, subfr_length - D, D, arch );
npm ERR! ^~~~~
npm ERR! In file included from ../deps/opus/silk/fixed/burg_modified_FIX.c:35:0:
npm ERR! ../deps/opus/celt/pitch.h:185:1: note: expected ‘const opus_val16 * {aka const float *}’ but argument is of type ‘const opus_int16 * {aka const short int *}’
npm ERR! celt_pitch_xcorr_c(const opus_val16 *_x, const opus_val16 *_y,
npm ERR! ^~~~~~~~~~~~~~~~~~
npm ERR! ../deps/opus/silk/fixed/burg_modified_FIX.c:98:37: warning: passing argument 2 of ‘celt_pitch_xcorr_c’ from incompatible pointer type [-Wincompatible-pointer-types]
npm ERR! celt_pitch_xcorr(x_ptr, x_ptr + 1, xcorr, subfr_length - D, D, arch );
npm ERR! ^~~~~
npm ERR! In file included from ../deps/opus/silk/fixed/burg_modified_FIX.c:35:0:
npm ERR! ../deps/opus/celt/pitch.h:185:1: note: expected ‘const opus_val16 * {aka const float *}’ but argument is of type ‘const opus_int16 * {aka const short int *}’
npm ERR! celt_pitch_xcorr_c(const opus_val16 *_x, const opus_val16 *_y,
npm ERR! ^~~~~~~~~~~~~~~~~~
npm ERR! ../deps/opus/silk/fixed/burg_modified_FIX.c:98:48: warning: passing argument 3 of ‘celt_pitch_xcorr_c’ from incompatible pointer type [-Wincompatible-pointer-types]
npm ERR! celt_pitch_xcorr(x_ptr, x_ptr + 1, xcorr, subfr_length - D, D, arch );
npm ERR! ^~~~~
npm ERR! In file included from ../deps/opus/silk/fixed/burg_modified_FIX.c:35:0:
npm ERR! ../deps/opus/celt/pitch.h:185:1: note: expected ‘opus_val32 * {aka float *}’ but argument is of type ‘opus_int32 * {aka int *}’
npm ERR! celt_pitch_xcorr_c(const opus_val16 *_x, const opus_val16 *_y,
npm ERR! ^~~~~~~~~~~~~~~~~~
npm ERR! ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c: In function ‘silk_pitch_analysis_core’:
npm ERR! ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c:200:27: warning: passing argument 1 of ‘celt_pitch_xcorr_c’ from incompatible pointer type [-Wincompatible-pointer-types]
npm ERR! celt_pitch_xcorr( target_ptr, target_ptr - MAX_LAG_4KHZ, xcorr32, SF_LENGTH_8KHZ, MAX_LAG_4KHZ - MIN_LAG_4KHZ + 1, arch );
npm ERR! ^~~~~~~~~~
npm ERR! In file included from ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c:39:0:
npm ERR! ../deps/opus/celt/pitch.h:185:1: note: expected ‘const opus_val16 * {aka const float *}’ but argument is of type ‘const opus_int16 * {aka const short int *}’
npm ERR! celt_pitch_xcorr_c(const opus_val16 *_x, const opus_val16 *_y,
npm ERR! ^~~~~~~~~~~~~~~~~~
npm ERR! ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c:200:39: warning: passing argument 2 of ‘celt_pitch_xcorr_c’ from incompatible pointer type [-Wincompatible-pointer-types]
npm ERR! celt_pitch_xcorr( target_ptr, target_ptr - MAX_LAG_4KHZ, xcorr32, SF_LENGTH_8KHZ, MAX_LAG_4KHZ - MIN_LAG_4KHZ + 1, arch );
npm ERR! ^~~~~~~~~~
npm ERR! In file included from ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c:39:0:
npm ERR! ../deps/opus/celt/pitch.h:185:1: note: expected ‘const opus_val16 * {aka const float *}’ but argument is of type ‘const opus_int16 * {aka const short int *}’
npm ERR! celt_pitch_xcorr_c(const opus_val16 *_x, const opus_val16 *_y,
npm ERR! ^~~~~~~~~~~~~~~~~~
npm ERR! ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c:200:66: warning: passing argument 3 of ‘celt_pitch_xcorr_c’ from incompatible pointer type [-Wincompatible-pointer-types]
npm ERR! celt_pitch_xcorr( target_ptr, target_ptr - MAX_LAG_4KHZ, xcorr32, SF_LENGTH_8KHZ, MAX_LAG_4KHZ - MIN_LAG_4KHZ + 1, arch );
npm ERR! ^~~~~~~
npm ERR! In file included from ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c:39:0:
npm ERR! ../deps/opus/celt/pitch.h:185:1: note: expected ‘opus_val32 * {aka float *}’ but argument is of type ‘opus_int32 * {aka int *}’
npm ERR! celt_pitch_xcorr_c(const opus_val16 *_x, const opus_val16 *_y,
npm ERR! ^~~~~~~~~~~~~~~~~~
npm ERR! ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c: In function ‘silk_P_Ana_calc_corr_st3’:
npm ERR! ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c:616:27: warning: passing argument 1 of ‘celt_pitch_xcorr_c’ from incompatible pointer type [-Wincompatible-pointer-types]
npm ERR! celt_pitch_xcorr( target_ptr, target_ptr - start_lag - lag_high, xcorr32, sf_length, lag_high - lag_low + 1, arch );
npm ERR! ^~~~~~~~~~
npm ERR! In file included from ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c:39:0:
npm ERR! ../deps/opus/celt/pitch.h:185:1: note: expected ‘const opus_val16 * {aka const float *}’ but argument is of type ‘const opus_int16 * {aka const short int *}’
npm ERR! celt_pitch_xcorr_c(const opus_val16 *_x, const opus_val16 *_y,
npm ERR! ^~~~~~~~~~~~~~~~~~
npm ERR! ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c:616:39: warning: passing argument 2 of ‘celt_pitch_xcorr_c’ from incompatible pointer type [-Wincompatible-pointer-types]
npm ERR! celt_pitch_xcorr( target_ptr, target_ptr - start_lag - lag_high, xcorr32, sf_length, lag_high - lag_low + 1, arch );
npm ERR! ^~~~~~~~~~
npm ERR! In file included from ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c:39:0:
npm ERR! ../deps/opus/celt/pitch.h:185:1: note: expected ‘const opus_val16 * {aka const float *}’ but argument is of type ‘const opus_int16 * {aka const short int *}’
npm ERR! celt_pitch_xcorr_c(const opus_val16 *_x, const opus_val16 *_y,
npm ERR! ^~~~~~~~~~~~~~~~~~
npm ERR! ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c:616:74: warning: passing argument 3 of ‘celt_pitch_xcorr_c’ from incompatible pointer type [-Wincompatible-pointer-types]
npm ERR! celt_pitch_xcorr( target_ptr, target_ptr - start_lag - lag_high, xcorr32, sf_length, lag_high - lag_low + 1, arch );
npm ERR! ^~~~~~~
npm ERR! In file included from ../deps/opus/silk/fixed/pitch_analysis_core_FIX.c:39:0:
npm ERR! ../deps/opus/celt/pitch.h:185:1: note: expected ‘opus_val32 * {aka float *}’ but argument is of type ‘opus_int32 * {aka int *}’
npm ERR! celt_pitch_xcorr_c(const opus_val16 *_x, const opus_val16 *_y,
npm ERR! ^~~~~~~~~~~~~~~~~~
npm ERR! make: g++: Command not found
npm ERR! make: *** [Release/obj.target/opus/src/node-opus.o] Error 127
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/home/ec2-user/.nvm/versions/node/v16.16.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Linux 5.10.130-118.517.amzn2.x86_64
npm ERR! gyp ERR! command "/home/ec2-user/.nvm/versions/node/v16.16.0/bin/node" "/home/ec2-user/.nvm/versions/node/v16.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/ec2-user/app/Discord_MultiPurpose/node_modules/#discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.26/opus.node" "--module_name=opus" "--module_path=/home/ec2-user/app/Discord_MultiPurpose/node_modules/#discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.26" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3"
npm ERR! gyp ERR! cwd /home/ec2-user/app/Discord_MultiPurpose/node_modules/#discordjs/opus
npm ERR! gyp ERR! node -v v16.16.0
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/home/ec2-user/.nvm/versions/node/v16.16.0/bin/node /home/ec2-user/.nvm/versions/node/v16.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/ec2-user/app/Discord_MultiPurpose/node_modules/#discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.26/opus.node --module_name=opus --module_path=/home/ec2-user/app/Discord_MultiPurpose/node_modules/#discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.26 --napi_version=8 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/ec2-user/app/Discord_MultiPurpose/node_modules/#discordjs/node-pre-gyp/lib/util/compile.js:85:20)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:527:28)
npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm ERR! node-pre-gyp ERR! System Linux 5.10.130-118.517.amzn2.x86_64
npm ERR! node-pre-gyp ERR! command "/home/ec2-user/.nvm/versions/node/v16.16.0/bin/node" "/home/ec2-user/app/Discord_MultiPurpose/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd /home/ec2-user/app/Discord_MultiPurpose/node_modules/#discordjs/opus
npm ERR! node-pre-gyp ERR! node -v v16.16.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.4.4
npm ERR! node-pre-gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ec2-user/.npm/_logs/2022-08-12T17_03_18_121Z-debug-0.log

Can anyone help fixing my error on installing isolated-vm?

I run into the following error installing the npm package isolated VM on Debian 11:
https://www.npmjs.com/package/isolated-vm
The log doesn't help me that much...
npm ERR! code 1
npm ERR! path /home/screeps/screeps-server/node_modules/isolated-vm
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild --release -j 4
npm ERR! make: Entering directory '/home/screeps/screeps-server/node_modules/isolated-vm/build'
npm ERR! CXX(target) Release/obj.target/nortti/src/external_copy/serializer_nortti.o
npm ERR! CXX(target) Release/obj.target/nortti/src/isolate/allocator_nortti.o
npm ERR! AR(target) Release/obj.target/nortti.a
npm ERR! COPY Release/nortti.a
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/external_copy/external_copy.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/external_copy/serializer.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/external_copy/string.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/isolate/environment.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/isolate/executor.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/isolate/holder.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/isolate/inspector.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/isolate/platform_delegate.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/isolate/scheduler.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/isolate/stack_trace.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/isolate/three_phase_task.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/lib/thread_pool.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/lib/timer.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/module/callback.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/module/context_handle.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/module/evaluation.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/module/external_copy_handle.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/module/isolate.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/module/isolate_handle.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/module/lib_handle.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/module/module_handle.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/module/native_module_handle.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/module/reference_handle.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/module/script_handle.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/module/session_handle.o
npm ERR! CXX(target) Release/obj.target/isolated_vm/src/module/transferable.o
npm ERR! SOLINK_MODULE(target) Release/obj.target/isolated_vm.node
npm ERR! make: Leaving directory '/home/screeps/screeps-server/node_modules/isolated-vm/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#9.0.0
npm ERR! gyp info using node#12.22.5 | linux | x64
npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/screeps/screeps-server/node_modules/isolated-vm/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/screeps/.cache/node-gyp/12.22.5/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/home/screeps/.cache/node-gyp/12.22.5',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/screeps/.cache/node-gyp/12.22.5/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/screeps/screeps-server/node_modules/isolated-vm',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build', '--jobs', 4 ]
npm ERR! ../src/isolate/environment.cc:25: warning: "_GNU_SOURCE" redefined
npm ERR! 25 | #define _GNU_SOURCE
npm ERR! |
npm ERR! <command-line>: note: this is the location of the previous definition
npm ERR! ../src/module/lib_handle.cc: In member function 'v8::Local<v8::Value> ivm::LibHandle::PrivateSymbol(v8::MaybeLocal<v8::String>)':
npm ERR! ../src/module/lib_handle.cc:58:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
npm ERR! 58 | return *reinterpret_cast<Local<Value>*>(&symbol);
npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/module/lib_handle.cc:58:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
npm ERR! /usr/bin/ld: cannot find -lbrotlidec
npm ERR! /usr/bin/ld: cannot find -lbrotlienc
npm ERR! /usr/bin/ld: cannot find -lcares
npm ERR! /usr/bin/ld: cannot find -lnghttp2
npm ERR! /usr/bin/ld: cannot find -licui18n
npm ERR! /usr/bin/ld: cannot find -licuuc
npm ERR! /usr/bin/ld: cannot find -licudata
npm ERR! collect2: error: ld returned 1 exit status
npm ERR! make: *** [isolated_vm.target.mk:229: Release/obj.target/isolated_vm.node] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:314:20)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
npm ERR! gyp ERR! System Linux 4.19.0
npm ERR! gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release" "-j" "4"
npm ERR! gyp ERR! cwd /home/screeps/screeps-server/node_modules/isolated-vm
npm ERR! gyp ERR! node -v v12.22.5
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /home/screeps/.npm/_logs/2022-05-03T11_59_47_268Z-debug-0.log
I can't open the log afterwards because the folder gets already deleted.
Something has to be up with the libs:
lbrotlidec, lbrotlienc
Any ideas, how to fix this?
Check if the version of NodeJS that you are currently using is compatible with the version of isolated-vm that you are trying to install.
https://www.npmjs.com/package/isolated-vm#requirements
For example, I was trying to install another library and I was getting a similar error, my version of node was 16, downgraded it to 12 and no more errors.

Node-gyp error while `npm install` on macos Bigsur

I am getting node-gyp error while doing npm install.
It's mainly happening when a project has node-sass or env-cmd these kind of dependencies. While trying to install env-cmd package or node-sass it's getting this errors.
I am using macos bigsur v11.6.1. node version v16.14.0.
Can anybody help ?
npm ERR! ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const
std::string &' to prevent copying
npm ERR! for (const auto denominator : denominators)
npm ERR! ^~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! &
npm ERR! 2 warnings generated.
npm ERR! In file included from ../src/libsass/src/util.cpp:3:
npm ERR! ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
npm ERR! for (const auto numerator : numerators)
npm ERR! ^
npm ERR! ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
npm ERR! for (const auto numerator : numerators)
npm ERR! ^~~~~~~~~~~~~~~~~~~~~~
npm ERR! &
npm ERR! ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
npm ERR! for (const auto denominator : denominators)
npm ERR! ^
npm ERR! ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
npm ERR! for (const auto denominator : denominators)
npm ERR! ^~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! &
npm ERR! 2 warnings generated.
npm ERR! In file included from ../src/libsass/src/values.cpp:3:
npm ERR! In file included from ../src/libsass/src/values.hpp:4:
npm ERR! ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
npm ERR! for (const auto numerator : numerators)
npm ERR! ^
npm ERR! ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::string &' to prevent copying
npm ERR! for (const auto numerator : numerators)
npm ERR! ^~~~~~~~~~~~~~~~~~~~~~
npm ERR! &
npm ERR! ../src/libsass/src/ast.hpp:1616:25: warning: loop variable 'denominator' creates a copy from type 'const std::string' [-Wrange-loop-construct]
npm ERR! for (const auto denominator : denominators)
npm ERR! ^
npm ERR! ../src/libsass/src/ast.hpp:1616:14: note: use reference type 'const std::string &' to prevent copying
npm ERR! for (const auto denominator : denominators)
npm ERR! ^~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! &
npm ERR! 2 warnings generated.
npm ERR! In file included from ../src/binding.cpp:1:
npm ERR! In file included from ../../nan/nan.h:58:
npm ERR! In file included from /Users/macbookpro/.node-gyp/16.14.0/include/node/node.h:63:
npm ERR! In file included from /Users/macbookpro/.node-gyp/16.14.0/include/node/v8.h:30:
npm ERR! /Users/macbookpro/.node-gyp/16.14.0/include/node/v8-internal.h:492:38: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?
npm ERR! !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
npm ERR! ~~~~~^~~~~~~~~~~
npm ERR! remove_cv
npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:710:50: note: 'remove_cv' declared here
npm ERR! template <class _Tp> struct _LIBCPP_TEMPLATE_VIS remove_cv
npm ERR! ^
npm ERR! 1 error generated.
npm ERR! make: *** [Release/obj.target/binding/src/binding.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/Users/macbookpro/Desktop/V2 projects/ecrm/latest/ecrm-training-frontend/node_modules/node-gyp/lib/build.js:262:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:520:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Darwin 20.6.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/Users/macbookpro/Desktop/V2 projects/ecrm/latest/ecrm-training-frontend/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd /Users/macbookpro/Desktop/V2 projects/ecrm/latest/ecrm-training-frontend/node_modules/node-sass
npm ERR! gyp ERR! node -v v16.14.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1
From the comment by #alex-scott you can see many details.
What solved it for me was manual download:
https://github.com/nodejs/node-gyp/blob/HEAD/macOS_Catalina.md#installing-node-gyp-using-the-xcode-command-line-tools-via-manual-download
I downloaded the most recent version that does not require Monterey.
Command_Line_Tools_for_Xcode_13.2.dmg
xcode-select --install did NOT install the correct version.
I solve this error, I only need to use the command
yarn add node-sass
This update the node-sass and solve all the errors inside the packages when we try to install everything
EDIT:
Node-sass is already deprecated, you should check Sass instead

Resources