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

Unable to Install MagicMirror dependencies - npm error

Scheduled Pinned Locked Moved Unsolved Troubleshooting
6 Posts 2 Posters 1.8k 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.
  • Q Offline
    qtin
    last edited by Jul 15, 2019, 10:20 AM

    Platform: Raspberry Pi 3B

    Node Version: 10.15.2

    MagicMirror Version: V2

    Description: For some reason I am not able to install MagicMirror on my Raspi 3B. This is straight after loading a brand new NOOBS setup (3.1.1.1) and then using the Automatic install url to install npm and MagicMirror. It Installs npm but when installing the MagicMirror depencies I get an error saying ‘npm ERR! cb()never called!’ followed by ‘Unable to install dependencies’ .
    Strange thing is that I used the same NOOBS installation on a Raspi 2 last Wednesday and it installed MagicMirror without any issues. Did anyone else experience the same issue when trying to install it on Raspi 3B with the lastest Raspbian Buster (June 2019 release)?

    Steps to Reproduce: See description above

    Expected Results: Smooth installation of MagicMirror

    Actual Results: Errors during installation, not able to install dependencies.

    Configuration: N/A
    2019-07-15T06_14_28_892Z-debug.log

    Additional Notes: I’ve tried checking for a later version of npm and reinstalling node.Js without any success.

    Help would be appreciated. Thanks

    Terminal response below:

    npm installation Done!
    Cloning MagicMirror ...
    Cloning into 'MagicMirror'...
    remote: Enumerating objects: 315, done.
    remote: Counting objects: 100% (315/315), done.
    remote: Compressing objects: 100% (282/282), done.
    remote: Total 315 (delta 39), reused 192 (delta 21), pack-reused 0
    Receiving objects: 100% (315/315), 655.07 KiB | 412.00 KiB/s, done.
    Resolving deltas: 100% (39/39), done.
    Cloning MagicMirror Done!
    Installing dependencies ...
    npm WARN npm npm does not support Node.js v10.15.2
    npm WARN npm You should probably upgrade to a newer version of node as we
    npm WARN npm can't make any promises that npm will work with this version.
    npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
    npm WARN npm You can find the latest version at https://nodejs.org/
    npm WARN deprecated time-grunt@2.0.0: Deprecated because Grunt is practically un maintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates.
    npm WARN tar write after end
    npm WARN tar write after end
    npm WARN tar write after end
    npm WARN tar write after end
    npm WARN tar write after end
    npm WARN tar write after end
    npm WARN tar write after end
    npm WARN tar write after end
    npm WARN tar write after end
    npm ERR! cb() never called!
    
    npm ERR! This is an error with npm itself. Please report this error at:
    npm ERR! https://github.com/npm/npm/issues
    
    npm ERR! A complete log of this run can be found in:
    npm ERR! /home/pi/.npm/_logs/2019-07-15T06_14_28_892Z-debug.log
    Unable to install dependencies!
    
    S 1 Reply Last reply Jul 15, 2019, 3:19 PM Reply Quote 0
    • S Offline
      sdetweil @qtin
      last edited by sdetweil Jul 15, 2019, 3:20 PM Jul 15, 2019, 3:19 PM

      @qtin try to update npm

      sudo npm i -g npm
      

      Then delete MagicMirror/node_modules
      And then npm install from MagicMirror folder again

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      Q 1 Reply Last reply Jul 15, 2019, 7:50 PM Reply Quote 0
      • Q Offline
        qtin @sdetweil
        last edited by Jul 15, 2019, 7:50 PM

        @sdetweil
        Hi Sam

        Thank you, I will give it another go and feed back. Just going to reload Raspbian again and try the above.

        Would you recommend using the following command to clear the node modules inside the MagicMirror folder?

        rm -rf node_modules/
        
        S 1 Reply Last reply Jul 15, 2019, 8:08 PM Reply Quote 0
        • S Offline
          sdetweil @qtin
          last edited by Jul 15, 2019, 8:08 PM

          @qtin yes

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • Q Offline
            qtin
            last edited by Jul 16, 2019, 3:57 PM

            @sdetweil , It worked!

            Thank you for the recommendation.

            Still doesn’t make sense why it stopped working, unless there’s been an updated repository in the last week.

            Thanks again and keep well.

            S 1 Reply Last reply Jul 16, 2019, 4:52 PM Reply Quote 0
            • S Offline
              sdetweil @qtin
              last edited by Jul 16, 2019, 4:52 PM

              @qtin cool. All kinds of changes get made everyday to libraries we use and they use…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                3/6
                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