MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    UNSOLVED Help With 2.8 Install?

    Troubleshooting
    4
    11
    1209
    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.
    • P
      potts-mike last edited by

      I had MagicMirror 2.7 installed and it was working fine. I hadn’t gotten very far along with it when I upgraded to 2.8 and it black screened on me. I know that there are some threads discussing this but I decided to wipe everything and start over.

      I have a completely fresh and updated Raspbian install and when I run the installer script I get the following errors.

      Installing dependencies ...
      (node:4177) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
      npm WARN deprecated time-grunt@2.0.0: Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates.
      npm WARN engine grunt-markdownlint@2.5.0: wanted: {"node":">=6","npm":">=3"} (current: {"node":"8.11.1","npm":"1.4.21"})
      npm ERR! Error: Method Not Allowed
      npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
      npm ERR!     at /usr/share/npm/lib/cache/add-named.js:120:12
      npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
      npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
      npm ERR! If you need help, you may report this *entire* log,
      npm ERR! including the npm and node versions, at:
      npm ERR!     <http://github.com/npm/npm/issues>
      
      npm ERR! System Linux 4.19.57-v7+
      npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
      npm ERR! cwd /root/MagicMirror
      npm ERR! node -v v8.11.1
      npm ERR! npm -v 1.4.21
      npm ERR! code E405
      |
      > electron-chromedriver@1.8.0 install /root/MagicMirror/node_modules/spectron/node_modules/electron-chromedriver
      > node ./download-chromedriver.js
      
      module.js:549
          throw err;
          ^
      
      Error: Cannot find module '/root/MagicMirror/node_modules/spectron/node_modules/electron-chromedriver/download-chromedriver.js'
          at Function.Module._resolveFilename (module.js:547:15)
          at Function.Module._load (module.js:474:25)
          at Function.Module.runMain (module.js:693:10)
          at startup (bootstrap_node.js:188:16)
          at bootstrap_node.js:609:3
      npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
      npm WARN This failure might be due to the use of legacy binary "node"
      npm WARN For further explanations, please read
      /usr/share/doc/nodejs/README.Debian
       
      npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/root/MagicMirror/node_modules/spectron/node_modules/webdriverio/lib/commands'
      npm ERR! error rolling back  spectron@3.8.0 { Error: ENOTEMPTY: directory not empty, rmdir '/root/MagicMirror/node_modules/spectron/node_modules/webdriverio/lib/commands'
      npm ERR! error rolling back   errno: -39,
      npm ERR! error rolling back   code: 'ENOTEMPTY',
      npm ERR! error rolling back   syscall: 'rmdir',
      npm ERR! error rolling back   path: '/root/MagicMirror/node_modules/spectron/node_modules/webdriverio/lib/commands' }
      npm ERR! tar.unpack untar error /root/.npm/postcss-jsx/0.36.2/package.tgz
      npm ERR! tar.unpack untar error /root/.npm/table/5.4.4/package.tgz
      npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/root/MagicMirror/node_modules/stylelint/node_modules/postcss/lib'
      npm ERR! error rolling back  stylelint@10.1.0 { Error: ENOTEMPTY: directory not empty, rmdir '/root/MagicMirror/node_modules/stylelint/node_modules/postcss/lib'
      npm ERR! error rolling back   errno: -39,
      npm ERR! error rolling back   code: 'ENOTEMPTY',
      npm ERR! error rolling back   syscall: 'rmdir',
      npm ERR! error rolling back   path: '/root/MagicMirror/node_modules/stylelint/node_modules/postcss/lib' }
      npm ERR! tar.unpack untar error /root/.npm/escape-string-regexp/1.0.5/package.tgz
      npm ERR! tar.unpack untar error /root/.npm/supports-color/5.5.0/package.tgz
      npm ERR! tar.unpack untar error /root/.npm/postcss-selector-parser/3.1.1/package.tgz
      npm ERR! tar.unpack untar error /root/.npm/autoprefixer/9.6.1/package.tgz
      npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/root/MagicMirror/node_modules/stylelint/node_modules/chalk/node_modules/ansi-styles'
      npm ERR! error rolling back  chalk@2.4.2 { Error: ENOTEMPTY: directory not empty, rmdir '/root/MagicMirror/node_modules/stylelint/node_modules/chalk/node_modules/ansi-styles'
      npm ERR! error rolling back   errno: -39,
      npm ERR! error rolling back   code: 'ENOTEMPTY',
      npm ERR! error rolling back   syscall: 'rmdir',
      npm ERR! error rolling back   path: '/root/MagicMirror/node_modules/stylelint/node_modules/chalk/node_modules/ansi-styles' }
      npm ERR! tar.unpack untar error /root/.npm/remark-parse/6.0.3/package.tgz
      npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/root/MagicMirror/node_modules/stylelint/node_modules/postcss-markdown/node_modules/remark/node_modules/remark-stringify/lib/util'
      npm ERR! error rolling back  remark@10.0.1 { Error: ENOTEMPTY: directory not empty, rmdir '/root/MagicMirror/node_modules/stylelint/node_modules/postcss-markdown/node_modules/remark/node_modules/remark-stringify/lib/util'
      npm ERR! error rolling back   errno: -39,
      npm ERR! error rolling back   code: 'ENOTEMPTY',
      npm ERR! error rolling back   syscall: 'rmdir',
      npm ERR! error rolling back   path: '/root/MagicMirror/node_modules/stylelint/node_modules/postcss-markdown/node_modules/remark/node_modules/remark-stringify/lib/util' }
      npm ERR! tar.unpack untar error /root/.npm/remark-stringify/6.0.4/package.tgz
      npm ERR! 
      npm ERR! Additional logging details can be found in:
      npm ERR!     /root/MagicMirror/npm-debug.log
      npm ERR! not ok code 0
      Unable to install dependencies!
      

      Any help with these errors or help installing 2.7 appreciated, Thanks.

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

        @potts-mike said in Help With 2.8 Install?:

        npm ERR! npm -v 1.4.21

        npm is WAY downlevel

        wanna try my new installer script?
        it would be better just to start over again…

        bash -c  "$(curl -sL https://www.dropbox.com/s/rlh710ng0zwv3vp/raspberry.sh?dl=0)"
        

        I have also made a new script for upgrading
        https://forum.magicmirror.builders/topic/10859/new-upgrade-script-ready-for-testing

        Sam

        Create a working config
        How to add modules

        G 1 Reply Last reply Reply Quote 0
        • P
          potts-mike last edited by

          @sdetweil said in Help With 2.8 Install?:

          bash -c “$(curl -sL https://www.dropbox.com/s/rlh710ng0zwv3vp/raspberry.sh?dl=0)”

          I saw your other post. What is different between yours and the official one?

          S Mykle1 2 Replies Last reply Reply Quote 0
          • S
            sdetweil @potts-mike last edited by

            @potts-mike fixes for npm level, pm2 , non pi installs (mac, etc, and users who are not ‘pi’)

            hope to get this in to the next cycle
            along with the upgrade script

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • Mykle1
              Mykle1 Project Sponsor Module Developer @potts-mike last edited by

              @potts-mike

              I highly recommend @sdetweil’s scripts. 👍

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • G
                Gomalley @sdetweil last edited by

                @sdetweil I tried the new script and it did not autostart on reboot

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

                  @Gomalley which script did u use?

                  Upgrade doesn’t touch the pm2 config at all

                  Sam

                  Create a working config
                  How to add modules

                  G 2 Replies Last reply Reply Quote 0
                  • G
                    Gomalley @sdetweil last edited by

                    @sdetweil

                    bash -c  "$(curl -sL https://www.dropbox.com/s/rlh710ng0zwv3vp/raspberry.sh?dl=0)"
                    
                    1 Reply Last reply Reply Quote 0
                    • G
                      Gomalley @sdetweil last edited by

                      @sdetweil i did not do

                      npm install
                      

                      before I pasted the code above. Do you think thats my issue

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

                        @Gomalley the installer attempts to get node and npm up to the latest level.
                        And it does the npm install

                        Then it asks about using pm2.

                        Sadly it doesn’t have a log, I didn’t write the original. But I think I will add that. This is install from nothing.

                        Do
                        node -v
                        npm -v
                        Let me know

                        Sam

                        Create a working config
                        How to add modules

                        G 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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy