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

After 2.8 I'm having tons of issues. What are the steps from square 1 to get this working?

Scheduled Pinned Locked Moved Unsolved Troubleshooting
46 Posts 3 Posters 14.6k Views 3 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.
  • G Offline
    Gomalley @sdetweil
    last edited by Aug 5, 2019, 7:19 PM

    @sdetweil
    pi@raspberrypi:~ $ pm2 logs
    [PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2
    internal/modules/cjs/loader.js:583
    throw err;
    ^

    Error: Cannot find module ‘shelljs’
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (/usr/local/lib/node_modules/pm2/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at module.exports.Client.launchDaemon (/usr/local/lib/node_modules/pm2/lib/Client.js:244:7)
    at /usr/local/lib/node_modules/pm2/lib/Client.js:103:10
    at /usr/local/lib/node_modules/pm2/lib/Client.js:311:14
    at process._tickCallback (internal/process/next_tick.js:61:11)
    pi@raspberrypi:~ $ npm -v
    6.10.2
    pi@raspberrypi:~ $

    This is what happened when I did pm2 logs and npm -v. I am about to see what npm i -g npm will do

    1 Reply Last reply Reply Quote 0
    • G Offline
      Gomalley @sdetweil
      last edited by Aug 5, 2019, 7:24 PM

      @sdetweil
      pi@raspberrypi:~ $ npm i -g npm
      npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm
      npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
      npm ERR! path /usr/local/lib/node_modules/npm
      npm ERR! code EACCES
      npm ERR! errno -13
      npm ERR! syscall access
      npm ERR! Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules/npm’
      npm ERR! { [Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules/npm’]
      npm ERR! stack:
      npm ERR! ‘Error: EACCES: permission denied, access '/usr/local/lib/node_modules/npm'’,
      npm ERR! errno: -13,
      npm ERR! code: ‘EACCES’,
      npm ERR! syscall: ‘access’,
      npm ERR! path: ‘/usr/local/lib/node_modules/npm’ }
      npm ERR!
      npm ERR! The operation was rejected by your operating system.
      npm ERR! It is likely you do not have the permissions to access this file as the current user
      npm ERR!
      npm ERR! If you believe this might be a permissions issue, please double-check the
      npm ERR! permissions of the file and its containing directories, or try running
      npm ERR! the command again as root/Administrator (though this is not recommended).

      npm ERR! A complete log of this run can be found in:
      npm ERR! /home/pi/.npm/_logs/2019-08-05T19_21_26_414Z-debug.log

      S 1 Reply Last reply Aug 5, 2019, 11:49 PM Reply Quote 0
      • S Offline
        sdetweil @Gomalley
        last edited by Aug 5, 2019, 11:49 PM

        @Gomalley go old sudo screws thing up again…

        cd ~
        sudo chown -R pi .
        

        Then try again…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        G 1 Reply Last reply Aug 6, 2019, 3:16 AM Reply Quote 0
        • G Offline
          Gomalley @sdetweil
          last edited by Aug 6, 2019, 3:16 AM

          @sdetweil this is what happened when I typed in the command

          pi@raspberrypi:~ $ sudo chown -R pi
          chown: missing operand after ‘pi’
          Try ‘chown --help’ for more information.

          S 1 Reply Last reply Aug 6, 2019, 1:21 PM Reply Quote 0
          • S Offline
            sdetweil @Gomalley
            last edited by Aug 6, 2019, 1:21 PM

            @Gomalley there was a dot at the end, it was important

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            G 1 Reply Last reply Aug 6, 2019, 6:45 PM Reply Quote 0
            • G Offline
              Gomalley @sdetweil
              last edited by Aug 6, 2019, 6:45 PM

              @sdetweil

              Sorry, I missed that.
              This is what happened

              pi@raspberrypi:~ $ cd ~
              pi@raspberrypi:~ $ sudo chown -R pi .
              pi@raspberrypi:~ $ 
              

              It just went to the next line. Not sure why

              S 1 Reply Last reply Aug 6, 2019, 6:56 PM Reply Quote 0
              • S Offline
                sdetweil @Gomalley
                last edited by Aug 6, 2019, 6:56 PM

                @Gomalley it doesn’t say anything, it just changes ownership of everything in the home folder and down to the user pi.

                Now, back to what u were doing before

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                G 1 Reply Last reply Aug 6, 2019, 7:05 PM Reply Quote 0
                • G Offline
                  Gomalley @sdetweil
                  last edited by Aug 6, 2019, 7:05 PM

                  @sdetweil
                  I tried to excute some of the commands you gave me

                  pi@raspberrypi:~ $ pm2 logs
                  [PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2
                  internal/modules/cjs/loader.js:583
                      throw err;
                      ^
                  
                  Error: Cannot find module 'shelljs'
                      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
                      at Function.Module._load (internal/modules/cjs/loader.js:507:25)
                      at Module.require (internal/modules/cjs/loader.js:637:17)
                      at require (/usr/local/lib/node_modules/pm2/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
                      at module.exports.Client.launchDaemon (/usr/local/lib/node_modules/pm2/lib/Client.js:244:7)
                      at /usr/local/lib/node_modules/pm2/lib/Client.js:103:10
                      at /usr/local/lib/node_modules/pm2/lib/Client.js:311:14
                      at process._tickCallback (internal/process/next_tick.js:61:11)
                  pi@raspberrypi:~ $ npm i -g npm
                  npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm
                  npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules
                  npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
                  npm ERR! path /usr/local/lib/node_modules/npm
                  npm ERR! code EACCES
                  npm ERR! errno -13
                  npm ERR! syscall access
                  npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/npm'
                  npm ERR!  { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules/npm']
                  npm ERR!   stack:
                  npm ERR!    'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules/npm\'',
                  npm ERR!   errno: -13,
                  npm ERR!   code: 'EACCES',
                  npm ERR!   syscall: 'access',
                  npm ERR!   path: '/usr/local/lib/node_modules/npm' }
                  npm ERR! 
                  npm ERR! The operation was rejected by your operating system.
                  npm ERR! It is likely you do not have the permissions to access this file as the current user
                  npm ERR! 
                  npm ERR! If you believe this might be a permissions issue, please double-check the
                  npm ERR! permissions of the file and its containing directories, or try running
                  npm ERR! the command again as root/Administrator (though this is not recommended).
                  
                  npm ERR! A complete log of this run can be found in:
                  npm ERR!     /home/pi/.npm/_logs/2019-08-06T18_59_40_902Z-debug.log
                  pi@raspberrypi:~ $ 
                  
                  

                  I ran “pm2 logs” and “npm i -g npm”
                  Looks like I got similar results. Should I do

                  npm install
                  

                  In the MagicMirror folder now?

                  S 1 Reply Last reply Aug 6, 2019, 7:24 PM Reply Quote 0
                  • S Offline
                    sdetweil @Gomalley
                    last edited by Aug 6, 2019, 7:24 PM

                    @Gomalley no. Looks like u installed npm w sudo(root)

                    So, short term do

                    sudo npm i -g npm
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    G 1 Reply Last reply Aug 6, 2019, 8:11 PM Reply Quote 0
                    • G Offline
                      Gomalley @sdetweil
                      last edited by Aug 6, 2019, 8:11 PM

                      @sdetweil Sweet I think that worked

                      pi@raspberrypi:~ $ sudo npm i -g npm
                      /usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
                      /usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
                      + npm@6.10.3
                      updated 3 packages in 128.39s
                      pi@raspberrypi:~ $ 
                      

                      Now that I have done that, Should I run

                      npm install
                      

                      and then:

                      cd ~/MagicMirror
                      npm install
                      
                      S 1 Reply Last reply Aug 6, 2019, 8:56 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 2 / 5
                      2 / 5
                      • First post
                        16/46
                        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