Read the statement by Michael Teeuw here.
dist/electron: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
-
@sdetweil both actually. I ran npm run install-mm, then i ran your upgrade-script.sh got this Check current Node installation …
Node currently installed. Checking version number.
Minimum Node version: v20.8.0
Installed Node version: v20.8.0
No Node.js upgrade necessary.
Check current NPM installation …
NPM currently installed. Checking version number.
Minimum npm version: V10.1.0
Installed npm version: V10.2.3
No npm upgrade necessary.upgrading from version 2.25.0 to 2.25.0
fetching latest revisionsChecking for modules with removed libraries
no modules found needing npm refresh -
@the_2winz did u find the command to install libnss?
-
@sdetweil I found this Install libnss3 deb package: sudo apt-get install libnss3, but get this: /usr/lib/x86_64-linux-gnu $ sudo apt-get install libnss3
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
libnss3 is already the newest version (2:3.61-1+deb11u3).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. -
@the_2winz and now MM should start ok
you should not be running MM as root user… -
@sdetweil still get this
rob@raspberry:~/MagicMirror $ npm run startmagicmirror@2.25.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js/home/rob/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
-
sudo apt get install libnss
edit:
on my desktop I see
libnss3.so => /usr/lib/x86_64-linux-gnu/libnss3.so (0x00007f2630707000)
from
ldd ~/MagicMirror/node_modules/electron/dist/electron | grep libnss
-
@sdetweil rob@raspberry:/usr/lib/x86_64-linux-gnu $ find libnss3.so
find: ‘libnss3.so’: No such file or directory -
-
@sdetweil i cp to the right dir… but now when i run npm run start i get the following error > magicmirror@2.25.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
/home/rob/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libnss3.so: wrong ELF class: ELFCLASS32
-
@sdetweil i was able to add it to the electron/dist/ directory but when i run npm run start, now i get this error /home/rob/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libnss3.so: wrong ELF class: ELFCLASS32