• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
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

Scheduled Pinned Locked Moved Solved Troubleshooting
23 Posts 2 Posters 8.7k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    the_2winz
    last edited by Nov 8, 2023, 6:08 AM

    new magicmirror2 install. finally got npm install-mm to run. when i ran npm start run, i get /MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

    S 1 Reply Last reply Nov 8, 2023, 11:54 AM Reply Quote 0
    • T Offline
      the_2winz @sdetweil
      last edited by Nov 9, 2023, 1:55 PM

      @sdetweil i think i will just lean on the browser feature - npm run server seems to work. thanks for all your help!

      1 Reply Last reply Reply Quote 1
      • S Away
        sdetweil @the_2winz
        last edited by Nov 8, 2023, 11:54 AM

        @the_2winz what platform is this?

        Google search to find the system command to install that library

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        T 1 Reply Last reply Nov 8, 2023, 1:57 PM Reply Quote 0
        • T Offline
          the_2winz @sdetweil
          last edited by Nov 8, 2023, 1:57 PM

          @sdetweil Debian Bullseye with Raspberry Pi Desktop

          S 1 Reply Last reply Nov 8, 2023, 2:15 PM Reply Quote 0
          • S Away
            sdetweil @the_2winz
            last edited by sdetweil Nov 8, 2023, 2:16 PM Nov 8, 2023, 2:15 PM

            @the_2winz weird. haven’t seen that error in a long time on that

            did you install MagicMirror w my script or manually?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            T 1 Reply Last reply Nov 8, 2023, 2:25 PM Reply Quote 0
            • T Offline
              the_2winz @sdetweil
              last edited by Nov 8, 2023, 2:25 PM

              @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 revisions

              Checking for modules with removed libraries
              no modules found needing npm refresh

              S 1 Reply Last reply Nov 8, 2023, 2:35 PM Reply Quote 0
              • S Away
                sdetweil @the_2winz
                last edited by Nov 8, 2023, 2:35 PM

                @the_2winz did u find the command to install libnss?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                T 2 Replies Last reply Nov 8, 2023, 2:46 PM Reply Quote 0
                • T Offline
                  the_2winz @sdetweil
                  last edited by Nov 8, 2023, 2:46 PM

                  @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.

                  S 1 Reply Last reply Nov 8, 2023, 2:52 PM Reply Quote 0
                  • S Away
                    sdetweil @the_2winz
                    last edited by sdetweil Nov 8, 2023, 2:54 PM Nov 8, 2023, 2:52 PM

                    @the_2winz and now MM should start ok
                    you should not be running MM as root user…

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      the_2winz @sdetweil
                      last edited by Nov 8, 2023, 2:57 PM

                      @sdetweil still get this
                      rob@raspberry:~/MagicMirror $ npm run start

                      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: cannot open shared object file: No such file or directory

                      S 1 Reply Last reply Nov 8, 2023, 3:27 PM Reply Quote 0
                      • S Away
                        sdetweil @the_2winz
                        last edited by sdetweil Nov 8, 2023, 3:37 PM Nov 8, 2023, 3:27 PM

                        @the_2winz

                        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
                        

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        T 1 Reply Last reply Nov 8, 2023, 4:30 PM Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        1 / 3
                        • First post
                          1/23
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy