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

Help With 2.8 Install?

Scheduled Pinned Locked Moved Unsolved Troubleshooting
11 Posts 4 Posters 2.4k Views 4 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.
  • P Offline
    potts-mike
    last edited by Jul 28, 2019, 10:56 PM

    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 Offline
      sdetweil
      last edited by Jul 28, 2019, 11:31 PM

      @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

      How to add modules

      learning how to use browser developers window for css changes

      G 1 Reply Last reply Jul 31, 2019, 2:13 AM Reply Quote 0
      • P Offline
        potts-mike
        last edited by Jul 28, 2019, 11:36 PM

        @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 M 2 Replies Last reply Jul 28, 2019, 11:38 PM Reply Quote 0
        • S Offline
          sdetweil @potts-mike
          last edited by Jul 28, 2019, 11:38 PM

          @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

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @potts-mike
            last edited by Jul 28, 2019, 11:45 PM

            @potts-mike

            I highly recommend @sdetweil’s scripts. :thumbsup:

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • G Offline
              Gomalley @sdetweil
              last edited by Jul 31, 2019, 2:13 AM

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

              S 1 Reply Last reply Jul 31, 2019, 2:17 AM Reply Quote 0
              • S Offline
                sdetweil @Gomalley
                last edited by Jul 31, 2019, 2:17 AM

                @Gomalley which script did u use?

                Upgrade doesn’t touch the pm2 config at all

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                G 2 Replies Last reply Jul 31, 2019, 2:18 AM Reply Quote 0
                • G Offline
                  Gomalley @sdetweil
                  last edited by Jul 31, 2019, 2:18 AM

                  @sdetweil

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

                    @sdetweil i did not do

                    npm install
                    

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

                    S 1 Reply Last reply Jul 31, 2019, 3:15 AM Reply Quote 0
                    • S Offline
                      sdetweil @Gomalley
                      last edited by sdetweil Jul 31, 2019, 3:16 AM Jul 31, 2019, 3:15 AM

                      @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

                      How to add modules

                      learning how to use browser developers window for css changes

                      G 1 Reply Last reply Jul 31, 2019, 10:22 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        2/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