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

Got error when run MM 2.14.0

Scheduled Pinned Locked Moved Troubleshooting
11 Posts 2 Posters 2.6k 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
    slametps
    last edited by Mar 7, 2021, 9:17 AM

    I’m installing a new fresh MM 2.14.0 using installation script . After everything seems OK through installation, but the MM is not loaded. MM and PM2 is installed successfully. When I tried to run manually, got the following error:

    pi@raspberrypi:~/MagicMirror $ npm run start
    
    > magicmirror@2.14.0 start /home/pi/MagicMirror
    > ./run-start.sh $1
    
    ./run-start.sh: line 41: [: too many arguments
    [07.03.2021 16:04.29.213] [ERROR] App threw an error during load
    [07.03.2021 16:04.29.233] [ERROR] Error: Cannot find module 'lodash'
    Require stack:
    - /home/pi/MagicMirror/node_modules/express-ipfilter/lib/ipfilter.js
    - /home/pi/MagicMirror/node_modules/express-ipfilter/index.js
    - /home/pi/MagicMirror/js/server.js
    - /home/pi/MagicMirror/js/app.js
    - /home/pi/MagicMirror/js/electron.js
    - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
    - 
        at Module._resolveFilename (internal/modules/cjs/loader.js:798:15)
        at Function../lib/common/reset-search-paths.ts.Module._resolveFilename (electron/js2c/browser_init.js:7718:16)
        at Module._load (internal/modules/cjs/loader.js:691:27)
        at Function.Module._load (electron/js2c/asar.js:748:26)
        at Module.require (internal/modules/cjs/loader.js:853:19)
        at require (internal/modules/cjs/helpers.js:74:18)
        at Object.<anonymous> (/home/pi/MagicMirror/node_modules/express-ipfilter/lib/ipfilter.js:12:11)
        at Module._compile (internal/modules/cjs/loader.js:968:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:986:10)
        at Module.load (internal/modules/cjs/loader.js:816:32)
    A JavaScript error occurred in the main process
    Uncaught Exception:
    Error: Cannot find module 'lodash'
    Require stack:
    - /home/pi/MagicMirror/node_modules/express-ipfilter/lib/ipfilter.js
    - /home/pi/MagicMirror/node_modules/express-ipfilter/index.js
    - /home/pi/MagicMirror/js/server.js
    - /home/pi/MagicMirror/js/app.js
    - /home/pi/MagicMirror/js/electron.js
    - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
    

    What’s wrong? Any one have the same/similar problem and already had the solution?
    Thx.

    regards,

    Slamet PS

    S 3 Replies Last reply Mar 7, 2021, 12:50 PM Reply Quote 0
    • S Offline
      sdetweil @slametps
      last edited by sdetweil Mar 7, 2021, 1:23 PM Mar 7, 2021, 12:50 PM

      @slametps I will look at the run-start problem,
      but it appears install did not complete.

      can u post the ~/install.log file

      please use the code block markers
      select the text after lasting it, then push the button that looks like < />

      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 @slametps
        last edited by sdetweil Mar 7, 2021, 1:21 PM Mar 7, 2021, 1:21 PM

        @slametps to fix the run-start.sh problem do

        cd  ~/MagicMirror
        curl  -sL  https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/run-start.sh > run-start.sh

        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 @slametps
          last edited by Mar 7, 2021, 1:28 PM

          @slametps also, did u edit the config.js and change ipWhitelist at all?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          S 1 Reply Last reply Mar 7, 2021, 1:35 PM Reply Quote 0
          • S Offline
            slametps @sdetweil
            last edited by Mar 7, 2021, 1:35 PM

            @sdetweil : no, it is a fresh install.
            Here is the link to install.log

            regards,

            Slamet PS

            S 1 Reply Last reply Mar 7, 2021, 1:38 PM Reply Quote 0
            • S Offline
              slametps @slametps
              last edited by Mar 7, 2021, 1:38 PM

              @slametps said in Got error when run MM 2.14.0:

              @sdetweil : no, it is a fresh install.
              Here is the link to install.log

              The raspberry is also a fresh install, I created the disk using Raspberry Pi Imager.

              regards,

              Slamet PS

              S 1 Reply Last reply Mar 7, 2021, 1:41 PM Reply Quote 0
              • S Offline
                sdetweil @slametps
                last edited by Mar 7, 2021, 1:41 PM

                @slametps ok, don’t know what happened… looks like u ran install 5 separate times…

                so lets do this

                cd ~/MagicMirror
                rm  package-lock.json
                rm -rf node_modules
                npm install --only=prod
                

                then try to start MM,

                npm start 
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                S 2 Replies Last reply Mar 7, 2021, 1:47 PM Reply Quote 0
                • S Offline
                  slametps @sdetweil
                  last edited by Mar 7, 2021, 1:47 PM

                  @sdetweil said in Got error when run MM 2.14.0:

                  @slametps ok, don’t know what happened… looks like u ran install 5 separate times…

                  so lets do this

                  cd ~/MagicMirror
                  rm  package-lock.json
                  rm -rf node_modules
                  npm install --only=prod
                  

                  then try to start MM,

                  npm start 
                  

                  Yap, the installation has failed several times. I’ll try re-install as your direction.

                  regards,

                  Slamet PS

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    slametps @sdetweil
                    last edited by Mar 7, 2021, 1:56 PM

                    @sdetweil said in Got error when run MM 2.14.0:

                    @slametps ok, don’t know what happened… looks like u ran install 5 separate times…

                    so lets do this

                    cd ~/MagicMirror
                    rm  package-lock.json
                    rm -rf node_modules
                    npm install --only=prod
                    

                    then try to start MM,

                    npm start 
                    

                    I got the following error when execute
                    npm install --only=prod

                    pi@raspberrypi:~/MagicMirror $ npm install --only=prod
                    npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha512-zd8xmga7H8fqb09boh5SICtctwp4gI+dLMANKCXpdihRn/ggW2ZimSQo/H3cBcfzsjljTDoAiOPc6deEOSWKDw== integrity checksum failed when using sha512: wanted sha512-zd8xmga7H8fqb09boh5SICtctwp4gI+dLMANKCXpdihRn/ggW2ZimSQo/H3cBcfzsjljTDoAiOPc6deEOSWKDw== but got sha512-z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg==. (0 bytes)
                    npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
                    npm ERR! code EINTEGRITY
                    npm ERR! errno EINTEGRITY
                    npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/chai: sha512-zd8xmga7H8fqb09boh5SICtctwp4gI+dLMANKCXpdihRn/ggW2ZimSQo/H3cBcfzsjljTDoAiOPc6deEOSWKDw== integrity checksum failed when using sha512: wanted sha512-zd8xmga7H8fqb09boh5SICtctwp4gI+dLMANKCXpdihRn/ggW2ZimSQo/H3cBcfzsjljTDoAiOPc6deEOSWKDw== but got sha512-z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg==. (0 bytes)
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /home/pi/.npm/_logs/2021-03-07T13_53_31_822Z-debug.log
                    

                    regards,

                    Slamet PS

                    S 1 Reply Last reply Mar 7, 2021, 1:58 PM Reply Quote 0
                    • S Offline
                      sdetweil @slametps
                      last edited by Mar 7, 2021, 1:58 PM

                      @slametps fun…

                      do

                      cd ~
                      sudo rm -rf  .npm
                      rm -rf MagicMirror
                      

                      note the dot in front of npm

                      then run the install script again.

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      S 1 Reply Last reply Mar 11, 2021, 6:31 AM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        5/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