Unsolved I can't rebuild Gateway and I always get permission errors that I can't fix
-
npm rebuild
npm ERR! code 1
npm ERR! path /home/joshua/MagicMirror/modules/Gateway/node_modules/node-pty
npm ERR! command failed
npm ERR! command sh -c node scripts/install.js
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.1
npm ERR! gyp info using node@18.16.0 | linux | x64
npm ERR! gyp ERR! clean error
npm ERR! gyp ERR! stack Error: EACCES: permission denied, rmdir ‘build’
npm ERR! gyp ERR! System Linux 5.10.0-15-amd64
npm ERR! gyp ERR! command “/usr/local/bin/node” “/home/joshua/MagicMirror/modules/Gateway/node_modules/.bin/node-gyp” “rebuild”
npm ERR! gyp ERR! cwd /home/joshua/MagicMirror/modules/Gateway/node_modules/node-pty
npm ERR! gyp ERR! node -v v18.16.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not oknpm ERR! A complete log of this run can be found in:
-
requirements? folders permission?
maybe this command can help in a terminal:
echo hello
-
Wait how will that help?
-
it can sometimes help to say “hello” before asking a question…
and it will motivate me to make sentences and answer you correctly (this is not currently the case) -
oh sorry
Hello I keep getting error messages thrown at me whenever I run “npm rebuild” in MagicMirror/modules/Gateway is there anyway to fix this?
-
Give me release info
cat /etc/os-release
in all case
npm ERR! gyp ERR! System Linux 5.10.0-15-amd64
is strangeGive me permission access of the Gateway folder
cd ~/MagicMirror/modules/Gateway ls -la
-
info: 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/”When I did that command it said I didn’t have access to that folder
-
try this:
cd ~/MagicMirror/modules ls -la
-
this is what i got:
total 36
drwxr-xr-x 9 joshua joshua 4096 Jun 13 21:17 .
drwxr-xr-x 18 joshua joshua 4096 Jun 12 12:41 …
drwxr-xr-x 10 joshua joshua 4096 Jun 12 12:40 default
drwxr-xr-x 7 joshua joshua 4096 Jun 13 20:59 EXT-Alert
drwxr-xr-x 7 joshua joshua 4096 Jun 13 20:53 EXT-Detector
drwxr-xr-x 8 joshua joshua 4096 Jun 12 19:11 EXT-Spotify
drwxrwxrwx 15 joshua joshua 4096 Jun 13 21:58 Gateway
drwxr-xr-x 10 joshua joshua 4096 Jun 13 21:14 MMM-GoogleAssistant
drwxr-xr-x 6 joshua joshua 4096 Jun 12 12:45 MMM-SmartTouch -
And Gateway was highlighted green while the others were blue
-
try this :
cd ~/MagicMirror/modules sudo rm -rf Gateway git clone https://github.com/bugsounet/Gateway cd Gateway npm run preinstall && npm install
-
this is what I got:
Rebuild Failed
npm ERR! code 255
npm ERR! path /home/joshua/MagicMirror/modules/Gateway
npm ERR! command failed
npm ERR! command sh -c installer/postinstall.shnpm ERR! A complete log of this run can be found in:
npm ERR! /home/joshua/.npm/_logs/2023-06-16T09_44_28_500Z-debug-0.log -
it’s a pi or a computer ?
-
computer
-
can you tell me what says this command inside Gateway Folder
./node_modules/.bin/MagicMirror-rebuild
-
this is what it says:
MagicMirror Rebuild Failed
An unhandled error occurred inside electron-rebuild
node-gyp failed to rebuild ‘/home/joshua/MagicMirror/modules/Gateway/node_modules/lzma-native’.
Error:make
failed with exit code: 2Error: node-gyp failed to rebuild ‘/home/joshua/MagicMirror/modules/Gateway/node_modules/lzma-native’.
Error:make
failed with exit code: 2at ModuleRebuilder.rebuildNodeGypModule (/home/joshua/MagicMirror/modules/Gateway/node_modules/magicmirror-rebuild/build/module-rebuilder.js:193:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Rebuilder.rebuildModuleAt (/home/joshua/MagicMirror/modules/Gateway/node_modules/magicmirror-rebuild/build/rebuild.js:180:9) at async Rebuilder.rebuild (/home/joshua/MagicMirror/modules/Gateway/node_modules/magicmirror-rebuild/build/rebuild.js:143:17) at async /home/joshua/MagicMirror/modules/Gateway/node_modules/magicmirror-rebuild/build/cli.js:141:9
-
can you try to install EXT-Detector, just for see if the problem is the same ?
-
Rebuild Failed
npm ERR! code 255
npm ERR! path /home/joshua/MagicMirror/modules/EXT-Detector
npm ERR! command failed
npm ERR! command sh -c installer/postinstall.sh -
ok … so dependencies are not installed
try this:
sudo apt-get install libmagic-dev libatlas-base-dev sox libsox-fmt-all build-essential nginx certbot python3 python-is-python3 python3-certbot-nginx make
past the result
-
npm ERR! code 255
npm ERR! path /home/joshua/MagicMirror/modules/Gateway
npm ERR! command failed
npm ERR! command sh -c installer/postinstall.sh