Unsolved Gateway npn err multiple errors
-
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 ? -
Require will not help you?
-
So this is what I understand I checked the requirements :
- OS
semy821@raspberry:~ $ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" semy821@raspberry:~ $ getconf LONG_BIT 32
- Node
semy821@raspberry:~ $ node -v v18.17.0
- npm
semy821@raspberry:~ $ npm -v 9.8.1
Also you have this remainder and i tought that evry thing is good.
Please tell me what i am doing wrong. Thank you so much!
-
-
So try with
Raspberry Pi OS 32-bit with desktop
fromraspberrypi.com
website there or read and test this -
It’s better to use this for some compatibilities many libraries are not ready with x64 on a raspberry pi
-
I push the limits of the raspberry pi using only this OS (official).
I don’t want to go around all the OS to check compatibility because it would take too much time
-