Solved issue with npm
-
Can you give me the result of this command:
getconf LONG_BIT
-
@zeangkor 32
-
ok … humm
past me entire log output from
MagicMirror Rebuild... ⠏ MagicMirror Building module: snowboy ...
to your error that you have past, please … I think a library missing
-
@bugsounet [29.03.2022 18:11.03.471] [LOG] Starting MagicMirror: v2.18.0
[29.03.2022 18:11.03.478] [LOG] Loading config …
[29.03.2022 18:11.03.484] [LOG] Loading module helpers …
[29.03.2022 18:11.03.487] [LOG] No helper found for module: alert.
[29.03.2022 18:11.03.508] [LOG] Initializing new module helper …
[29.03.2022 18:11.03.513] [LOG] Module helper loaded: updatenotification
[29.03.2022 18:11.03.515] [LOG] No helper found for module: clock.
[29.03.2022 18:11.03.671] [LOG] Initializing new module helper …
[29.03.2022 18:11.03.672] [LOG] Module helper loaded: calendar
[29.03.2022 18:11.03.674] [LOG] No helper found for module: weather.
[29.03.2022 18:11.03.709] [LOG] Initializing new module helper …
[29.03.2022 18:11.03.711] [LOG] Module helper loaded: newsfeed
[29.03.2022 18:11.03.711] [LOG] No helper found for module: MMM-NowPlayingOnSpotify.
[29.03.2022 18:11.03.713] [LOG] No helper found for module: MMM-SpeedTest.
[29.03.2022 18:11.04.146] [LOG] Initializing new module helper …
[29.03.2022 18:11.04.147] [LOG] Module helper loaded: MMM-GoogleAssistant
[29.03.2022 18:11.04.150] [LOG] Initializing new module helper …
[29.03.2022 18:11.04.151] [LOG] Module helper loaded: EXT-Detector
[29.03.2022 18:11.04.153] [LOG] Initializing new module helper …
[29.03.2022 18:11.04.154] [LOG] Module helper loaded: EXT-Alert
[29.03.2022 18:11.04.155] [LOG] Initializing new module helper …
[29.03.2022 18:11.04.156] [LOG] Module helper loaded: Gateway
[29.03.2022 18:11.04.157] [LOG] No helper found for module: MMM-Globe.
[29.03.2022 18:11.04.271] [LOG] Initializing new module helper …
[29.03.2022 18:11.04.271] [LOG] Module helper loaded: MMM-Remote-Control
[29.03.2022 18:11.04.272] [LOG] No helper found for module: MMM-PIR-Sensor.
[29.03.2022 18:11.04.273] [LOG] No helper found for module: MMM-Face-Reco-DNN.
[29.03.2022 18:11.04.274] [LOG] No helper found for module: example_module.
[29.03.2022 18:11.04.275] [LOG] No helper found for module: example_module_2.
[29.03.2022 18:11.04.276] [LOG] No helper found for module: example_module_3.
[29.03.2022 18:11.04.277] [LOG] No helper found for module: example_module_4.
[29.03.2022 18:11.04.277] [LOG] No helper found for module: compliments.
[29.03.2022 18:11.04.278] [LOG] All module helpers loaded.
[29.03.2022 18:11.04.401] [LOG] Starting server on port 8080 …
[29.03.2022 18:11.04.430] [LOG] Server started …
[29.03.2022 18:11.04.431] [LOG] Connecting socket for: updatenotification
[29.03.2022 18:11.04.432] [LOG] Starting module helper: updatenotification
[29.03.2022 18:11.04.433] [LOG] Connecting socket for: calendar
[29.03.2022 18:11.04.434] [LOG] Starting node helper for: calendar
[29.03.2022 18:11.04.435] [LOG] Connecting socket for: newsfeed
[29.03.2022 18:11.04.435] [LOG] Starting node helper for: newsfeed
[29.03.2022 18:11.04.436] [LOG] Connecting socket for: MMM-GoogleAssistant
[29.03.2022 18:11.04.437] [LOG] [GA] Read config.js and check ConfigDeepMerge…
[29.03.2022 18:11.04.438] [LOG] [GA] Perfect ConfigDeepMerge activated!
[29.03.2022 18:11.04.439] [LOG] Connecting socket for: EXT-Detector
[29.03.2022 18:11.04.440] [LOG] [DETECTOR] EXT-Detector Version: 1.0.1 rev: 220315
[29.03.2022 18:11.04.441] [LOG] Connecting socket for: EXT-Alert
[29.03.2022 18:11.04.441] [LOG] Starting module helper: EXT-Alert
[29.03.2022 18:11.04.442] [LOG] Connecting socket for: Gateway
[29.03.2022 18:11.04.443] [LOG] Connecting socket for: MMM-Remote-Control
[29.03.2022 18:11.04.444] [LOG] Starting node helper for: MMM-Remote-Control
[29.03.2022 18:11.04.453] [LOG] Sockets connected & modules started …
[29.03.2022 18:11.04.813] [LOG] Launching application.
[29.03.2022 18:11.07.767] [LOG] Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/36/Belgium_Holidays.ics - Interval: 300000
[29.03.2022 18:11.07.852] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
[29.03.2022 18:11.07.907] [LOG] Create new newsfetcher for url: https://www.nieuwsblad.be/rss/section/55178e67-15a8-4ddd-a3d8-bfe5708f8932 - Interval: 300000
[29.03.2022 18:11.07.956] [INFO] Checking git for module: MMM-GoogleAssistant
[29.03.2022 18:11.08.015] [LOG] [GA] MMM-GoogleAssistant Version: 4.0.2 rev: 220322
[29.03.2022 18:11.08.021] [LOG] [GA] Platform: ‘raspberry-pi’; attempting to use ‘arecord’ to access microphone …
[29.03.2022 18:11.08.025] [LOG] [GA] Google Assistant is initialized.
[29.03.2022 18:11.08.029] [LOG] [ALERT] EXT-Alert Version: 1.0.0 rev: 220301
[29.03.2022 18:11.08.031] [LOG] [GATEWAY] Gateway Version: 1.0.2 rev: 220326
[29.03.2022 18:11.08.353] [ERROR] [DETECTOR] Snowboy library: Loading error! Error: Cannot find module ‘/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/lib/node/binding/Release/electron-v16.0-linux-arm/snowboy.node’
Require stack:- /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/lib/node/index.js
- /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/index.js
- /home/pi/MagicMirror/modules/EXT-Detector/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
- at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:785:27)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:94:18)
at Object.<anonymous> (/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/lib/node/index.js:9:29)
at Module._compile (node:internal/modules/cjs/loader:1116:14)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1169:10) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/lib/node/index.js’,
‘/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/index.js’,
‘/home/pi/MagicMirror/modules/EXT-Detector/node_helper.js’,
‘/home/pi/MagicMirror/js/app.js’,
‘/home/pi/MagicMirror/js/electron.js’,
‘/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js’,
undefined
]
}
[29.03.2022 18:11.08.364] [ERROR] [DETECTOR] Warning: 1 @bugsounet library not loaded !
[29.03.2022 18:11.08.365] [ERROR] [DETECTOR] Try to solve it withnpm run rebuild
in EXT-Detector directory
[29.03.2022 18:11.08.394] [ERROR] [DETECTOR] No detector initialized!
[29.03.2022 18:11.08.404] [INFO] Checking git for module: EXT-Detector
[29.03.2022 18:11.08.550] [INFO] Checking git for module: EXT-Alert
[29.03.2022 18:11.08.688] [INFO] Checking git for module: Gateway
[29.03.2022 18:11.08.767] [INFO] Checking git for module: MMM-Remote-Control
[29.03.2022 18:11.08.827] [INFO] Checking git for module: default
[29.03.2022 18:11.09.163] [INFO] Newsfeed-Fetcher: Broadcasting 25 items.
[29.03.2022 18:11.11.080] [INFO] Calendar-Fetcher: Broadcasting 10 events.
[29.03.2022 18:11.12.136] [INFO] Newsfeed-Fetcher: Broadcasting 57 items.
32
32
32
-
not that … from
npm run rebuild
-
@bugsounet npm run rebuild
EXT-Detector@1.0.1 rebuild
installer/rebuild.shWelcome to EXT-Detector rebuild script
This script will erase current build of EXT-Detector and reinstall it
Use this script only for the new version of Magic Mirror
Do you want to continue ? [Y/n]
Your choice: yDeleting: package-lock.json node_modules
Done.Upgrading EXT-Detector…
HEAD is now at 04a5704 Merge pull request #2 from bugsounet/dev
Already up to date.
Done.Reinstalling EXT-Detector…
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
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 request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142EXT-Detector@1.0.1 preinstall
installer/preinstall.shWelcome to EXT-Detector “1.0.1”,
Checking OS…
OS Detected: linux-gnueabihf (raspbian 10 armv7l)Checking all dependencies…
All Dependencies needed are installed !Installing all npm libraries…
EXT-Detector@1.0.1 postinstall
installer/postinstall.shMagicMirror Rebuild…
⠴ MagicMirror Building module: snowboy, Completed: 0gyp info find Python using Python version 3.7.3 found at “/usr/bin/python3”
⠦ MagicMirror Building module: snowboy, Completed: 0gyp http GET https://www.electronjs.org/headers/v16.0.5/node-v16.0.5-headers.tar.gz
⠇ MagicMirror Building module: snowboy, Completed: 0gyp http 200 https://www.electronjs.org/headers/v16.0.5/node-v16.0.5-headers.tar.gz
⠋ MagicMirror Building module: snowboy, Completed: 0gyp http GET https://www.electronjs.org/headers/v16.0.5/SHASUMS256.txt
⠴ MagicMirror Building module: snowboy, Completed: 0gyp http 200 https://www.electronjs.org/headers/v16.0.5/SHASUMS256.txt
(node:9892) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
(Usenode --trace-deprecation ...
to show where the warning was created)
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args ‘/home/pi/MagicMirror/modules/EXT-Detector/node_modules/node-gyp/gyp/gyp_main.py’,
gyp info spawn args ‘binding.gyp’,
gyp info spawn args ‘-f’,
gyp info spawn args ‘make’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/build/config.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/home/pi/MagicMirror/modules/EXT-Detector/node_modules/node-gyp/addon.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/16.0.5/include/node/common.gypi’,
gyp info spawn args ‘-Dlibrary=shared_library’,
gyp info spawn args ‘-Dvisibility=default’,
gyp info spawn args ‘-Dnode_root_dir=/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/16.0.5’,
gyp info spawn args ‘-Dnode_gyp_dir=/home/pi/MagicMirror/modules/EXT-Detector/node_modules/node-gyp’,
gyp info spawn args ‘-Dnode_lib_file=/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/16.0.5/<(target_arch)/node.lib’,
gyp info spawn args ‘-Dmodule_root_dir=/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy’,
gyp info spawn args ‘-Dnode_engine=v8’,
gyp info spawn args ‘–depth=.’,
gyp info spawn args ‘–no-parallel’,
gyp info spawn args ‘–generator-output’,
gyp info spawn args ‘build’,
gyp info spawn args ‘-Goutput_dir=.’
gyp info spawn args ]
⠋ MagicMirror Building module: snowboy, Completed: 0gyp: name ‘openssl_fips’ is not defined while evaluating condition ‘openssl_fips != “”’ in binding.gyp while trying to load binding.gyp
MagicMirror Rebuild FailedAn unhandled error occurred inside electron-rebuild
node-gyp failed to rebuild ‘/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy’.
Error:gyp
failed with exit code: 1Error: node-gyp failed to rebuild ‘/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy’.
Error:gyp
failed with exit code: 1at ModuleRebuilder.rebuildNodeGypModule (/home/pi/MagicMirror/modules/EXT-Detector/node_modules/magicmirror-rebuild/build/module-rebuilder.js:193:19) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Rebuilder.rebuildModuleAt (/home/pi/MagicMirror/modules/EXT-Detector/node_modules/magicmirror-rebuild/build/rebuild.js:180:9) at async Rebuilder.rebuild (/home/pi/MagicMirror/modules/EXT-Detector/node_modules/magicmirror-rebuild/build/rebuild.js:143:17) at async /home/pi/MagicMirror/modules/EXT-Detector/node_modules/magicmirror-rebuild/build/cli.js:141:9
Support is now moved in a dedicated Server: https://forum.bugsounet.fr
@bugsounetEXT-Detector is now installed !
added 205 packages, and audited 206 packages in 49s
24 packages are looking for funding
runnpm fund
for detailsfound 0 vulnerabilities
-
ok so the error is this:
gyp: name ‘openssl_fips’ is not defined while evaluating condition ‘openssl_fips != “”’ in binding.gyp while trying to load binding.gyp
what node version used ?
node -v
command can help (generaly you have this error with node v10) -
@bugsounet v17.8.0
-
and 17 so
-
try with node v14 and it will works
V16 and v17 is actually under devel (not really for using with MM)
v12 or v14 is the require for MM (recommanded v14)OS: Raspbian 11 // (Bullseye – 32-bit Version) is needed or debian 11
RPI 3b+ or more
Node: v14.x.x
npm: = v6.14.15 (some trouble with v7.x and more)
Linux: tested and developed on Linux Debian 11
720p // HD screen or more -
@bugsounet should i downgrade it?
-
naturally yes
-
@bugsounet hey it worked i know it’s not much but enjoy your beer thank you a lot for your help and time
-
don’t forget to Correct and transform MMM-GoogleAssistant v3 config to MMM-GoogleAssistant v4 config !
Because i’m king today …
I will do it:{ module: "MMM-GoogleAssistant", configDeepMerge: true, config: { assistantConfig: { latitude: 51.508530, longitude: -0.076132, } } },
really not complex !
Note:
classes: "always",
is not needed because this module use popups (only displayed on demand and have no position on the screen) -
this issue is now solved. open another if needed
-