I performed a backup of the node modules and then hard reset and ran npm install. After that… it has broken some of the googleapi modules and had to restore it back…
I am back to square one.
Any other ideas?
I performed a backup of the node modules and then hard reset and ran npm install. After that… it has broken some of the googleapi modules and had to restore it back…
I am back to square one.
Any other ideas?
Does performing a hard reset and removing node modules from ~/MagicMirror have any impact on the other modules that are installed?
Is it because it is not installed? Can we install electron separately and re-run the installation?
Yes, it is the same in the pi home dir, MagicMirror and MMM-GoogleAssistant folders…
Below is the output of the rebuild…
MagicMirror shows Library Loading Error…(same as before)…
pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $ npm run rebuild
> MMM-GoogleAssistant@6.0.2 rebuild
> installer/rebuild.sh
Welcome to MMM-GoogleAssistant v6.0.2 rebuild script
This script will erase current build and reinstall it
Do you want to continue ? [Y/n]
Your choice: Y
Deleting: package-lock.json node_modules
Done.
Updating...
HEAD is now at d849a2c v6.0.2
Already up to date.
Done
Reinstalling...
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
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 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.
> MMM-GoogleAssistant@6.0.2 preinstall
> installer/preinstall.sh -d 'pulseaudio nginx certbot python3 python-is-python3 python3-certbot-nginx make build-essential'
Welcome to MMM-GoogleAssistant v6.0.2
No root checking...
Checking MMM-GoogleAssistant: pi/pi
Checking MagicMirror: pi/pi
Checking OS...
OS Detected: linux-gnueabihf (raspbian 12 armv7l)
Checking all dependencies...
All Dependencies needed are installed !
> MMM-GoogleAssistant@6.0.2 postinstall
> installer/postinstall.sh -r -b -m
Minify Main code...
Found: 42 files to minify
Process File: ../MMM-GoogleAssistant.js
Process File: ../node_helper.js
Process File: ../components/wirelessTools.js
Process File: ../components/systemd.js
Process File: ../components/systemInformation.js
Process File: ../components/sysInfoPage.js
Process File: ../components/screenParser.js
Process File: ../components/proto-loader.js
Process File: ../components/parseData.js
Process File: ../components/lpcm16.js
Process File: ../components/loadLibraries.js
Process File: ../components/hyperwatch.js
Process File: ../components/googleSearch.js
Process File: ../components/googleAssistant.js
Process File: ../components/embedded-assistant.js
Process File: ../components/conversation.js
Process File: ../components/auth.js
Process File: ../components/assistantSearch.js
Process File: ../components/assistantResponse.js
Process File: ../components/assistantConverse.js
Process File: ../components/activateProcess.js
Process File: ../components/activateAssistant.js
Process File: ../components/actionsOnGoogle.js
Process File: ../components/SH_Tools.js
Process File: ../components/SH_Middleware.js
Process File: ../components/SH_Homegraph.js
Process File: ../components/SH_Callbacks.js
Process File: ../components/Middleware.js
Process File: ../components/Hooks.js
Process File: ../components/Gateway.js
Process File: ../components/GA_Tools.js
Process File: ../components/GAConfig.js
Process File: ../components/EXT_Translations.js
Process File: ../components/EXT_Tools.js
Process File: ../components/EXT_OthersRules.js
Process File: ../components/EXT_NotificationsActions.js
Process File: ../components/EXT_Database.js
Process File: ../components/EXT_Callbacks.js
Process File: ../components/EXT_Actions.js
Process File: ../components/DeviceManagement.js
Process File: ../components/BufferToMP3.js
Process File: ../components/Assistant.js
Done
Rebuild MagicMirror...
make: Entering directory '/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/node-pty/build'
CXX(target) Release/obj.target/pty/src/unix/pty.o
SOLINK_MODULE(target) Release/obj.target/pty.node
COPY Release/pty.node
make: Leaving directory '/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/node-pty/build'
Done
Support is now moved in a dedicated Server: https://forum.bugsounet.fr
@bugsounet
MMM-GoogleAssistant is now installed !
added 533 packages in 48s
90 packages are looking for funding
run `npm fund` for details
I am new to the forum and has installed Google Assistant but having issues starting the module.
I tried removing the node_modules, package-lock.json and ran npm install but still complaining on the version mismatch. Am I missing anything from my end?
Any help is appreciated !!
[LOG] [GA] MMM-GoogleAssistant Version: 6.0.2 rev: 240120
[21.01.2024 07:50.53.597] [ERROR] innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:
- /home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/node-pty/lib/unixTerminal.js
- /home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/node-pty/lib/index.js
- /home/pi/MagicMirror/modules/MMM-GoogleAssistant/components/loadLibraries.js
- /home/pi/MagicMirror/modules/MMM-GoogleAssistant/components/parseData.js
- /home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/serveronly/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1149:15)
at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:990:27)
at Module.require (node:internal/modules/cjs/loader:1237:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/node-pty/lib/unixTerminal.js:34:15)
at Module._compile (node:internal/modules/cjs/loader:1378:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
at Module.load (node:internal/modules/cjs/loader:1212:32)
at Module._load (node:internal/modules/cjs/loader:1028:12)
at Module.require (node:internal/modules/cjs/loader:1237:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/node-pty/lib/index.js:14:20)
at Module._compile (node:internal/modules/cjs/loader:1378:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
at Module.load (node:internal/modules/cjs/loader:1212:32) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/node-pty/lib/unixTerminal.js',
'/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/node-pty/lib/index.js',
'/home/pi/MagicMirror/modules/MMM-GoogleAssistant/components/loadLibraries.js',
'/home/pi/MagicMirror/modules/MMM-GoogleAssistant/components/parseData.js',
'/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_helper.js',
'/home/pi/MagicMirror/js/app.js',
'/home/pi/MagicMirror/serveronly/index.js'
]
}
[21.01.2024 07:50.53.599] [ERROR] [GA] [LIB] node-pty Loading error! The module '/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/node-pty/build/Release/pty.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 118. This version of Node.js requires
NODE_MODULE_VERSION 120. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
[21.01.2024 07:50.59.872] [ERROR] [GA] [LIB] Some libraries missing!