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.

    Unable to install dependencies

    Scheduled Pinned Locked Moved Solved Troubleshooting
    14 Posts 2 Posters 2.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.
    • S Offline
      sdetweil @nathan.joslin
      last edited by

      @nathan-joslin wow…

      If you do npm install in the MagicMirror folder. What other output do u get?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      N 1 Reply Last reply Reply Quote 0
      • N Offline
        nathan.joslin @sdetweil
        last edited by

        @sdetweil

        pi@raspberrypi:~ $ mmpm -M
        MagicMirror directory not found. Installing MagicMirror...
        
        $$\      $$\                     $$\           $$\      $$\ $$\                                          $$$$$$\
        $$$\    $$$ |                    \__|          $$$\    $$$ |\__|                                        $$  __$$\
        $$$$\  $$$$ | $$$$$$\   $$$$$$\  $$\  $$$$$$$\ $$$$\  $$$$ |$$\  $$$$$$\   $$$$$$\   $$$$$$\   $$$$$$\  \__/  $$ |
        $$\$$\$$ $$ | \____$$\ $$  __$$\ $$ |$$  _____|$$\$$\$$ $$ |$$ |$$  __$$\ $$  __$$\ $$  __$$\ $$  __$$\  $$$$$$  |
        $$ \$$$  $$ | $$$$$$$ |$$ /  $$ |$$ |$$ /      $$ \$$$  $$ |$$ |$$ |  \__|$$ |  \__|$$ /  $$ |$$ |  \__|$$  ____/
        $$ |\$  /$$ |$$  __$$ |$$ |  $$ |$$ |$$ |      $$ |\$  /$$ |$$ |$$ |      $$ |      $$ |  $$ |$$ |      $$ |
        $$ | \_/ $$ |\$$$$$$$ |\$$$$$$$ |$$ |\$$$$$$$\ $$ | \_/ $$ |$$ |$$ |      $$ |      \$$$$$$  |$$ |      $$$$$$$$\
        \__|     \__| \_______| \____$$ |\__| \_______|\__|     \__|\__|\__|      \__|       \______/ \__|      \________|
                               $$\   $$ |
                               \$$$$$$  |
                                \______/
        
        install log being saved to /home/pi/install.log
        Updating packages ...
        Installing helper tools ...
        Reading package lists... Done
        Building dependency tree       
        Reading state information... Done
        build-essential is already the newest version (12.6).
        curl is already the newest version (7.64.0-4).
        git is already the newest version (1:2.20.1-2+deb10u1).
        unzip is already the newest version (6.0-23+deb10u1).
        wget is already the newest version (1.20.1-1.1).
        0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
        Check current Node installation ...
        Node currently installed. Checking version number.
        Minimum Node version: v10.1.0
        Installed Node version: v10.15.2
        No Node.js upgrade necessary.
        Check current NPM installation ...
        NPM currently installed. Checking version number.
        Minimum npm version: V6.0.0
        Installed npm version: V5.8.0
        npm should be upgraded.
        Installing npm ...
        npm WARN npm npm does not support Node.js v10.15.2
        npm WARN npm You should probably upgrade to a newer version of node as we
        npm WARN npm can't make any promises that npm will work with this version.
        npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
        npm WARN npm You can find the latest version at https://nodejs.org/
        npm ERR! code CERT_NOT_YET_VALID
        npm ERR! errno CERT_NOT_YET_VALID
        npm ERR! request to https://registry.npmjs.org/npm failed, reason: certificate is not yet valid
        
        npm ERR! A complete log of this run can be found in:
        npm ERR!     /root/.npm/_logs/2020-02-13T20_21_42_189Z-debug.log
        npm installation Done! version=V5.8.0
        Cloning MagicMirror ...
        Cloning into 'MagicMirror'...
        remote: Enumerating objects: 331, done.
        remote: Counting objects: 100% (331/331), done.
        remote: Compressing objects: 100% (295/295), done.
        remote: Total 331 (delta 42), reused 194 (delta 23), pack-reused 0
        Receiving objects: 100% (331/331), 676.44 KiB | 105.00 KiB/s, done.
        Resolving deltas: 100% (42/42), done.
        Cloning MagicMirror Done!
        Installing dependencies ...
        npm WARN npm npm does not support Node.js v10.15.2
        npm WARN npm You should probably upgrade to a newer version of node as we
        npm WARN npm can't make any promises that npm will work with this version.
        npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
        npm WARN npm You can find the latest version at https://nodejs.org/
        npm ERR! code CERT_NOT_YET_VALID
        npm ERR! errno CERT_NOT_YET_VALID
        npm ERR! request to https://registry.npmjs.org/feedme failed, reason: certificate is not yet valid
        
        npm ERR! A complete log of this run can be found in:
        npm ERR!     /home/pi/.npm/_logs/2020-02-13T20_22_17_662Z-debug.log
        Unable to install dependencies!
        pi@raspberrypi:~ $ 
        

        Not sure if this helps either, I just deleted the MagicMirror folder before trying again.

        1 Reply Last reply Reply Quote 0
        • N Offline
          nathan.joslin @sdetweil
          last edited by

          @sdetweil

          pi@raspberrypi:~/MagicMirror $ npm install
          npm WARN npm npm does not support Node.js v10.15.2
          npm WARN npm You should probably upgrade to a newer version of node as we
          npm WARN npm can't make any promises that npm will work with this version.
          npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
          npm WARN npm You can find the latest version at https://nodejs.org/
          npm ERR! code CERT_NOT_YET_VALID
          npm ERR! errno CERT_NOT_YET_VALID
          npm ERR! request to https://registry.npmjs.org/iconv-lite failed, reason: certificate is not yet valid
          
          npm ERR! A complete log of this run can be found in:
          npm ERR!     /home/pi/.npm/_logs/2020-02-13T20_26_05_452Z-debug.log
          pi@raspberrypi:~/MagicMirror $ 
          

          Sorry I didn’t see your response, here is npm install

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @nathan.joslin
            last edited by

            @nathan-joslin that CERT NOT VALID is a real problem…

            Will have to research

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            N 1 Reply Last reply Reply Quote 0
            • N Offline
              nathan.joslin @sdetweil
              last edited by

              @sdetweil Why did your installation script not work? Tonight I may have time to delete the MagicMirror folder and use your script and show you what that says.

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @nathan.joslin
                last edited by sdetweil

                @nathan-joslin one suggestion for the cert error is to insure your system time is set correctly.

                My script is the same as before, and fails if npm install fails

                My script shows the same error, see line 5 of the log. Looks like the system date is in the past

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                N 2 Replies Last reply Reply Quote 0
                • N Offline
                  nathan.joslin @sdetweil
                  last edited by

                  @sdetweil
                  Okay I’ll look into it tonight, just have some things to take care of first. I thought it may have been related to the time, but when I tried to change the time it wasn’t letting me. I even rebooted multiple times. But I’ll try to get back to you tonight

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    nathan.joslin @sdetweil
                    last edited by

                    @sdetweil
                    I was finally able to install it correctly using your script. For some reason using

                    raspi-config
                    

                    was not changing the date and time so I had to do it manually. Thank you so much for your help! I didn’t think the date and time being off by 9 days would have been an issue. I hope my friends and I will be able to accomplish want we want to do with this, but that may have to be a surprise for later. Thanks once again.

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @nathan.joslin
                      last edited by

                      @nathan-joslin np. We all learned something. Now to detect it, and help others

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil
                        last edited by

                        @nathan-joslin i have added code to the installer to check for and report the date/time problem…

                        thanks for your help!

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          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