Read the statement by Michael Teeuw here.
electron-rebuild and MagicMirror v2.18 (and more)
-
@bugsounet
That did the trick. How can I thank you. It is working like it should!! -
-
@bugsounet I followed your instructions but the rebuilding step failed with the following message:
MagicMirror Building module: epoll, 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/MMM-PIR-Sensor/node_modules/epoll’.
Error:gyp
failed with exit code: 1Error: node-gyp failed to rebuild ‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll’.
Error:gyp
failed with exit code: 1at ModuleRebuilder.rebuildNodeGypModule (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/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/MMM-PIR-Sensor/node_modules/magicmirror-rebuild/build/rebuild.js:180:9)
at async Rebuilder.rebuild (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/magicmirror-rebuild/build/rebuild.js:143:17)
at async /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/magicmirror-rebuild/build/cli.js:141:9Do you know what the problem is? Thanks!
-
@susl :
- Recommended version of npm: v6.14.15
- Recommended version of node: v14.x.x or v16.x.x
to verify, try this in a terminal (or ssh):
node -v npm -v
-
@bugsounet
node version: v17.3.0
npm version: 8.3.0So obviously not the correct version :-( Do you know how I can change the versions?
-
@susl you can use n to install or select different versions of node (and npm)
to install n
sudo npm install n -g
then to install or use a version of node
n 16to switch
n
the select from the list
-
@sdetweil
Thanks a lot. I works now! -
@bugsounet Thank you for this!! It works like a charm ;)
-
Wow, perfect ! Thank you so much !
-
Thanks for doing this - much appreciated!