Read the statement by Michael Teeuw here.
Error on rebuilding MM
-
I get error on rebuilding MM while installing EXT-Detector.
Here is Error:ool@pine64:~/MagicMirror/modules$ git clone https://github.com/bugsounet/EXT-Detector
Cloning into ‘EXT-Detector’…
remote: Enumerating objects: 1431, done.
remote: Counting objects: 100% (580/580), done.
remote: Compressing objects: 100% (304/304), done.
remote: Total 1431 (delta 393), reused 343 (delta 274), pack-reused 851
Receiving objects: 100% (1431/1431), 12.99 MiB | 1.89 MiB/s, done.
Resolving deltas: 100% (889/889), done.
cool@pine64:~/MagicMirror/modules$ cd EXT-Detector
cool@pine64:~/MagicMirror/modules/EXT-Detector$ npm install
npm warn deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fsEXT-Detector@2.6.1 preinstall
installer/preinstall.sh -d ‘libmagic-dev libatlas-base-dev sox libsox-fmt-all build-essential’Welcome to EXT-Detector v2.6.1
No root checking…
Checking EXT-Detector: cool/cool
Checking MagicMirror: cool/coolChecking OS…
OS Detected: linux-gnu (ubuntu 22.04 aarch64)Checking all dependencies…
All Dependencies needed are installed !EXT-Detector@2.6.1 postinstall
installer/postinstall.sh -r -m -bPrepare snowboy library…
DoneMinify Main code…
Found: 7 files to minifyProcess File: …/EXT-Detector.js
Process File: …/node_helper.js
Process File: …/components/lib/node/index.js
Process File: …/components/visual.js
Process File: …/components/snowboy.js
Process File: …/components/porcupine.js
Process File: …/components/lpcm16.js
DoneRebuild MagicMirror…
✖ Rebuild FailedAn unhandled error occurred inside electron-rebuild
Could not detect abi for version 31.1.0 and runtime electron. Updating “node-abi” might help solve this issue if it is a new release of electronError: Could not detect abi for version 31.1.0 and runtime electron. Updating “node-abi” might help solve this issue if it is a new release of electron
at Object.getAbi (/home/cool/MagicMirror/modules/EXT-Detector/node_modules/node-abi/index.js:39:9)
at get ABI (/home/cool/MagicMirror/modules/EXT-Detector/node_modules/@electron/rebuild/lib/rebuild.js:89:39)
at PrebuildInstall.prebuiltModuleExists (/home/cool/MagicMirror/modules/EXT-Detector/node_modules/@electron/rebuild/lib/module-type/prebuild-install.js:59:179)
at ModuleRebuilder.prebuildInstallNativeModuleExists (/home/cool/MagicMirror/modules/EXT-Detector/node_modules/@electron/rebuild/lib/module-rebuilder.js:70:37)
at Rebuilder.rebuildModuleAt (/home/cool/MagicMirror/modules/EXT-Detector/node_modules/@electron/rebuild/lib/rebuild.js:143:35)
at async Rebuilder.rebuild (/home/cool/MagicMirror/modules/EXT-Detector/node_modules/@electron/rebuild/lib/rebuild.js:115:17)
at async /home/cool/MagicMirror/modules/EXT-Detector/node_modules/@electron/rebuild/lib/cli.js:159:9
Rebuild Failed
npm error code 255
npm error path /home/cool/MagicMirror/modules/EXT-Detector
npm error command failed
npm error command sh -c installer/postinstall.sh -r -m -b
npm error A complete log of this run can be found in: /home/cool/.npm/_logs/2024-07-01T14_22_52_595Z-debug-0.log
cool@pine64:~/MagicMirror/modules/EXT-Detector$ -
Duplicate of this Topic
Can you try this?