[asus-f15 dvpl_converter]# sudo npm install npm ERR! code 1 npm ERR! path /home/nobodouille/dvpl_converter/node_modules/lz4 npm ERR! command failed npm ERR! command sh -c -- node-gyp rebuild npm ERR! make: Entering directory '/home/nobodouille/dvpl_converter/node_modules/lz4/build' npm ERR! CXX(target) Release/obj.target/lz4/lib/binding/lz4_binding.o npm ERR! make: Leaving directory '/home/nobodouille/dvpl_converter/node_modules/lz4/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.1.0 npm ERR! gyp info using node@18.8.0 | linux | x64 npm ERR! gyp info find Python using Python version 3.10.6 found at "/usr/bin/python3" npm ERR! gyp WARN EACCES current user ("nobodouille") does not have permission to access the dev dir "/root/.cache/node-gyp/18.8.0" npm ERR! gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/lib/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/nobodouille/dvpl_converter/node_modules/lz4/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/lib/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/tmp/.node-gyp/18.8.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=/tmp/.node-gyp/18.8.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/tmp/.node-gyp/18.8.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/nobodouille/dvpl_converter/node_modules/lz4', 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' ] npm ERR! In file included from ../lib/binding/lz4_binding.cc:6: npm ERR! ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(AsyncWorker*)’: npm ERR! ../../nan/nan.h:2298:7: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 2298 | , reinterpret_cast(AsyncExecuteComplete) npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../../nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local, v8::Local, GetterCallback, SetterCallback, v8::Local, v8::AccessControl, v8::PropertyAttribute, imp::Sig)’: npm ERR! ../../nan/nan.h:2536:19: warning: ‘void v8::ObjectTemplate::SetAccessor(v8::Local, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local, v8::AccessControl, v8::PropertyAttribute, v8::Local, v8::SideEffectType, v8::SideEffectType)’ is deprecated: Do signature check in accessor [-Wdeprecated-declarations] npm ERR! 2536 | tpl->SetAccessor( npm ERR! | ~~~~~~~~~~~~~~~~^ npm ERR! 2537 | name npm ERR! | ~~~~ npm ERR! 2538 | , getter_ npm ERR! | ~~~~~~~~~ npm ERR! 2539 | , setter_ npm ERR! | ~~~~~~~~~ npm ERR! 2540 | , obj npm ERR! | ~~~~~ npm ERR! 2541 | , settings npm ERR! | ~~~~~~~~~~ npm ERR! 2542 | , attribute npm ERR! | ~~~~~~~~~~~ npm ERR! 2543 | , signature); npm ERR! | ~~~~~~~~~~~~ npm ERR! In file included from /tmp/.node-gyp/18.8.0/include/node/v8-function.h:15, npm ERR! from /tmp/.node-gyp/18.8.0/include/node/v8.h:33, npm ERR! from /tmp/.node-gyp/18.8.0/include/node/node.h:73, npm ERR! from ../lib/binding/lz4_binding.cc:4: npm ERR! /tmp/.node-gyp/18.8.0/include/node/v8-template.h:838:8: note: declared here npm ERR! 838 | void SetAccessor( npm ERR! | ^~~~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:2884: npm ERR! ../../nan/nan_typedarray_contents.h: In constructor ‘Nan::TypedArrayContents::TypedArrayContents(v8::Local)’: npm ERR! ../../nan/nan_typedarray_contents.h:34:43: error: ‘class v8::ArrayBuffer’ has no member named ‘GetContents’ npm ERR! 34 | data = static_cast(buffer->GetContents().Data()) + byte_offset; npm ERR! | ^~~~~~~~~~~ npm ERR! ../lib/binding/lz4_binding.cc: At global scope: npm ERR! /tmp/.node-gyp/18.8.0/include/node/node.h:862:7: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local, v8::Local, void*)’} [-Wcast-function-type] npm ERR! 862 | (node::addon_register_func) (regfunc), \ npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! /tmp/.node-gyp/18.8.0/include/node/node.h:896:3: note: in expansion of macro ‘NODE_MODULE_X’ npm ERR! 896 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) npm ERR! | ^~~~~~~~~~~~~ npm ERR! ../lib/binding/lz4_binding.cc:386:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! 386 | NODE_MODULE(lz4, init_lz4) npm ERR! | ^~~~~~~~~~~ npm ERR! ../lib/binding/lz4_binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE LZ4Uncompress(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../lib/binding/lz4_binding.cc:333:67: warning: this statement may fall through [-Wimplicit-fallthrough=] npm ERR! 333 | sIdx = info[2]->Uint32Value(Nan::GetCurrentContext()).FromJust(); npm ERR! | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ npm ERR! ../lib/binding/lz4_binding.cc:334:3: note: here npm ERR! 334 | case 2: npm ERR! | ^~~~ npm ERR! make: *** [lz4.target.mk:116: Release/obj.target/lz4/lib/binding/lz4_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 (/usr/lib/node_modules/node-gyp/lib/build.js:201:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28) npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Linux 5.19.0-3-rt10-MANJARO npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /home/nobodouille/dvpl_converter/node_modules/lz4 npm ERR! gyp ERR! node -v v18.8.0 npm ERR! gyp ERR! node-gyp -v v9.1.0 npm ERR! gyp ERR! not ok npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-09-21T12_40_14_614Z-debug-0.log