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

Fresh install, Cannot find module 'depd'

Scheduled Pinned Locked Moved Unsolved Troubleshooting
11 Posts 2 Posters 3.2k 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.
  • A Offline
    alborzs
    last edited by Jul 5, 2019, 8:46 PM

    @sdetweil , I just used the install script.

    bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)"
    
    S 1 Reply Last reply Jul 5, 2019, 9:12 PM Reply Quote 0
    • S Away
      sdetweil @alborzs
      last edited by Jul 5, 2019, 9:12 PM

      @alborzs I don’t see any code requiring depd…

      can u tell me you node and npm versions

      node -v 
      npm -v
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • A Offline
        alborzs
        last edited by Jul 5, 2019, 9:18 PM

        @sdetweil
        Please see below:

        pi@raspberrypi:~ $ node -v
        v9.11.2
        pi@raspberrypi:~ $ npm -v
        5.6.0
        
        S 1 Reply Last reply Jul 5, 2019, 9:19 PM Reply Quote 0
        • S Away
          sdetweil @alborzs
          last edited by Jul 5, 2019, 9:19 PM

          @alborzs do

          npm i -g npm
          

          looks downlevel… I am at 6.9.0

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • A Offline
            alborzs
            last edited by Jul 5, 2019, 9:35 PM

            @sdetweil,
            I tried that as sudo, still getting the exact same issue:

            pi@raspberrypi:~ $ sudo npm i -g npm
            /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
            /usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
            + npm@6.10.0
            added 323 packages, removed 364 packages and updated 55 packages in 275.817s
            
            
            
            
            
            pi@raspberrypi:~ $ cd MagicMirror/
            pi@raspberrypi:~/MagicMirror $ pm2 restart MagicMirror
            
            Use --update-env to update environment variables
            [PM2] Applying action restartProcessId on app [MagicMirror](ids: 1)
            [PM2] [MagicMirror](1) 
             Use `pm2 show <id|name>` to get more details about an app
            pi@raspberrypi:~/MagicMirror $ pm2 logs MagicMirror
            [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option)
            /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines:
            1|MagicMir | > magicmirror@2.8.0 start /home/pi/MagicMirror
            1|MagicMir | > sh run-start.sh
            1|MagicMir | 
            1|MagicMir | 
            1|MagicMir | > magicmirror@2.8.0 start /home/pi/MagicMirror
            1|MagicMir | > sh run-start.sh
            1|MagicMir | 
            1|MagicMir | 
            1|MagicMir | > magicmirror@2.8.0 start /home/pi/MagicMirror
            1|MagicMir | > sh run-start.sh
            1|MagicMir | 
            1|MagicMir | 
            1|MagicMir | > magicmirror@2.8.0 start /home/pi/MagicMirror
            1|MagicMir | > sh run-start.sh
            1|MagicMir | 
            
            /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
            1|MagicMir | Error: Cannot find module 'depd'
            1|MagicMir |     at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
            1|MagicMir |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
            1|MagicMir |     at Function.Module._load (internal/modules/cjs/loader.js:528:25)
            1|MagicMir |     at Module.require (internal/modules/cjs/loader.js:658:17)
            1|MagicMir |     at require (internal/modules/cjs/helpers.js:20:18)
            1|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/node_modules/body-parser/index.js:14:17)
            1|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/node_modules/body-parser/index.js:159:3)
            1|MagicMir |     at Module._compile (internal/modules/cjs/loader.js:711:30)
            1|MagicMir |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
            1|MagicMir |     at Module.load (internal/modules/cjs/loader.js:620:32)
            1|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information
            1|MagicMir | MESA-LOADER: failed to retrieve device information
            1|MagicMir | MESA-LOADER: failed to retrieve device information
            1|MagicMir | ATTENTION: default value of option force_s3tc_enable overridden by environment.
            
            
            S 1 Reply Last reply Jul 5, 2019, 9:38 PM Reply Quote 0
            • S Away
              sdetweil @alborzs
              last edited by Jul 5, 2019, 9:38 PM

              @alborzs ok, you ran ahead

              now go to MagicMirror folder and do

              npm install
              

              again

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • A Offline
                alborzs
                last edited by Jul 5, 2019, 9:48 PM

                @sdetweil ,
                I tried that, below is the result, still getting the same result.

                pi@raspberrypi:~/MagicMirror $ npm install
                
                > magicmirror@2.8.0 install /home/pi/MagicMirror
                > cd vendor && npm install
                
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
                npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                
                audited 220 packages in 9.1s
                found 5 vulnerabilities (4 low, 1 high)
                  run `npm audit fix` to fix them, or `npm audit` for details
                
                > magicmirror@2.8.0 postinstall /home/pi/MagicMirror
                > sh installers/postinstall/postinstall.sh && npm run install-fonts
                
                MagicMirror installation successful!
                
                > magicmirror@2.8.0 install-fonts /home/pi/MagicMirror
                > cd fonts && npm install
                
                audited 1 package in 1.117s
                found 0 vulnerabilities
                
                audited 3558 packages in 56.93s
                found 0 vulnerabilities
                
                
                
                1 Reply Last reply Reply Quote 0
                • A Offline
                  alborzs
                  last edited by Jul 5, 2019, 10:01 PM

                  @sdetweil

                  1|MagicMir | A JavaScript error occurred in the main process
                  1|MagicMir | Uncaught Exception:
                  1|MagicMir | Error: Cannot find module 'depd'
                  1|MagicMir |     at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
                  1|MagicMir |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
                  1|MagicMir |     at Function.Module._load (internal/modules/cjs/loader.js:528:25)
                  1|MagicMir |     at Module.require (internal/modules/cjs/loader.js:658:17)
                  1|MagicMir |     at require (internal/modules/cjs/helpers.js:20:18)
                  1|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/node_modules/body-parser/index.js:14:17)
                  1|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/node_modules/body-parser/index.js:159:3)
                  1|MagicMir |     at Module._compile (internal/modules/cjs/loader.js:711:30)
                  1|MagicMir |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
                  1|MagicMir |     at Module.load (internal/modules/cjs/loader.js:620:32)
                  1|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information
                  1|MagicMir | MESA-LOADER: failed to retrieve device information
                  1|MagicMir | MESA-LOADER: failed to retrieve device information
                  1|MagicMir | ATTENTION: default value of option force_s3tc_enable overridden by environment.
                  
                  
                  
                  S 1 Reply Last reply Jul 5, 2019, 10:02 PM Reply Quote 0
                  • S Away
                    sdetweil @alborzs
                    last edited by Jul 5, 2019, 10:02 PM

                    @alborzs weird…

                    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
                    1 / 2
                    • First post
                      7/11
                      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