ziomario@Z390-AORUS-PRO-DEST:~/Scrivania/ThePalace/Palace$ npm install
npm WARN deprecated har-validator@5.1.5: 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 ERR! code 1
npm ERR! path /home/ziomario/Scrivania/ThePalace/Palace/node_modules/keyboard-layout
npm ERR! command failed
npm ERR! command sh -c -- node-gyp rebuild
npm ERR! make: ingresso nella directory «/home/ziomario/Scrivania/ThePalace/Palace/node_modules/keyboard-layout/build»
npm ERR! CXX(target) Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager.o
npm ERR! CXX(target) Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager-linux.o
npm ERR! make: uscita dalla directory «/home/ziomario/Scrivania/ThePalace/Palace/node_modules/keyboard-layout/build»
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@6.1.0
npm ERR! gyp info using node@12.22.9 | linux | x64
npm ERR! gyp info find Python using Python version 3.10.4 found at "/usr/bin/python3"
npm ERR! gyp http GET https://nodejs.org/download/release/v12.22.9/node-v12.22.9-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v12.22.9/node-v12.22.9-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v12.22.9/SHASUMS256.txt
npm ERR! gyp http 200 https://nodejs.org/download/release/v12.22.9/SHASUMS256.txt
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/home/ziomario/Scrivania/ThePalace/Palace/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/ziomario/Scrivania/ThePalace/Palace/node_modules/keyboard-layout/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/ziomario/Scrivania/ThePalace/Palace/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/ziomario/.cache/node-gyp/12.22.9/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/ziomario/.cache/node-gyp/12.22.9',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/ziomario/Scrivania/ThePalace/Palace/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/ziomario/.cache/node-gyp/12.22.9/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/ziomario/Scrivania/ThePalace/Palace/node_modules/keyboard-layout',
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! ../src/keyboard-layout-manager-linux.cc:5:10: fatal error: X11/extensions/XKBrules.h: File o directory non esistente
npm ERR! 5 | #include <X11/extensions/XKBrules.h>
npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! compilation terminated.
npm ERR! make: *** [keyboard-layout-manager.target.mk:114: Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager-linux.o] Errore 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 (/home/ziomario/Scrivania/ThePalace/Palace/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 5.15.0-46-generic
npm ERR! gyp ERR! command "/usr/bin/node" "/home/ziomario/Scrivania/ThePalace/Palace/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /home/ziomario/Scrivania/ThePalace/Palace/node_modules/keyboard-layout
npm ERR! gyp ERR! node -v v12.22.9
npm ERR! gyp ERR! node-gyp -v v6.1.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ziomario/.npm/_logs/2022-08-22T08_22_53_619Z-debug-0.log