npm ERR! code 1
npm ERR! path /home/semy821/MagicMirror/modules/Gateway/node_modules/node-pty
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory ‘/home/semy821/MagicMirror/modules/Gateway/node_modules/node-pty/build’
npm ERR! CXX(target) Release/obj.target/pty/src/unix/pty.o
npm ERR! make: Leaving directory ‘/home/semy821/MagicMirror/modules/Gateway/node_modules/node-pty/build’
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.4.0
npm ERR! gyp info using node@18.17.0 | 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 ‘/home/semy821/MagicMirror/modules/Gateway/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/semy821/MagicMirror/modules/Gateway/node_modules/node-pty/build/config.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/home/semy821/MagicMirror/modules/Gateway/node_modules/node-gyp/addon.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/home/semy821/.cache/node-gyp/18.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=/home/semy821/.cache/node-gyp/18.17.0’,
npm ERR! gyp info spawn args ‘-Dnode_gyp_dir=/home/semy821/MagicMirror/modules/Gateway/node_modules/node-gyp’,
npm ERR! gyp info spawn args ‘-Dnode_lib_file=/home/semy821/.cache/node-gyp/18.17.0/<(target_arch)/node.lib’,
npm ERR! gyp info spawn args ‘-Dmodule_root_dir=/home/semy821/MagicMirror/modules/Gateway/node_modules/node-pty’,
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 /usr/include/errno.h:25,
npm ERR! from /home/semy821/.cache/node-gyp/18.17.0/include/node/uv/errno.h:25,
npm ERR! from /home/semy821/.cache/node-gyp/18.17.0/include/node/uv.h:54,
npm ERR! from …/…/nan/nan.h:59,
npm ERR! from …/src/unix/pty.cc:20:
npm ERR! /usr/include/features.h:461:12: fatal error: sys/cdefs.h: No such file or directory
npm ERR! 461 | # include <sys/cdefs.h>
npm ERR! | ^~~~~~~~~~~~~
npm ERR! compilation terminated.
npm ERR! make: *** [pty.target.mk:115: Release/obj.target/pty/src/unix/pty.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 (/home/semy821/MagicMirror/modules/Gateway/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:514:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Linux 5.10.0-15-amd64
npm ERR! gyp ERR! command “/usr/local/bin/node” “/home/semy821/MagicMirror/modules/Gateway/node_modules/.bin/node-gyp” “rebuild”
npm ERR! gyp ERR! cwd /home/semy821/MagicMirror/modules/Gateway/node_modules/node-pty
npm ERR! gyp ERR! node -v v18.17.0
npm ERR! gyp ERR! node-gyp -v v9.4.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in: /home/semy821/.npm/_logs/2023-08-07T18_13_00_404Z-debug-0.log
At recomandation i created a new topic.
So i am using Debian with Raspberry Pi Desktop, my question is this the problem that is not working ?