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

NPM ERR!

Scheduled Pinned Locked Moved Solved Troubleshooting
8 Posts 3 Posters 4.0k 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.
  • K Offline
    KirAsh4 Moderator
    last edited by Jun 6, 2016, 5:08 AM

    If you’re running this while logged in to the rPi (through the console), then you don’t need the 'DISPLAY=:0' part. However, something to note: if you are logged into the rPi from the console (so you have a keyboard connected that you are logging in to it), the moment you run 'npm start' and it successfully starts MM, you lose the ability to use anything else. There are keyboard shortcuts that you can hit to get back to the console but someone else will have to tell you those as I don’t know them off the top of my head.

    Ideally you would be connected to the rPi through a different machine on the same network. So you would SSH into the rPi, log in as the 'pi' user, and then you DO need to set the display: 'DISPLAY=:0' portion - note that it’s case specific!

    So, to recap, yes to what you listed above, with the small caveat on #3.

    A Life? Cool! Where can I download one of those from?

    M E 2 Replies Last reply Jun 6, 2016, 6:14 AM Reply Quote 0
    • M Offline
      MagicCrumps1 @KirAsh4
      last edited by Jun 6, 2016, 6:14 AM

      @KirAsh4 OMG THE DISPLAY WORKS! I’m super grateful for your help. It says that that I need to create a config file. The github instruction is not entirely clear on what I will need to do next. Do I duplicate the config file?

      1 Reply Last reply Reply Quote 0
      • K Offline
        KirAsh4 Moderator
        last edited by Jun 6, 2016, 6:18 AM

        From here, you need to follow the configuration section: https://github.com/MichMich/MagicMirror#configuration

        You can start by simply renaming the file from 'config.js.sample' to 'config.js' and restart the MagicMirror process. After that, you can start playing with the config file, disabling or (re)enabling modules, adding new ones … this is what you get to play with it.

        A Life? Cool! Where can I download one of those from?

        1 Reply Last reply Reply Quote 0
        • E Offline
          EoF @KirAsh4
          last edited by Jun 6, 2016, 9:01 PM

          @KirAsh4 as a note on this reply, Alt + F2 (I think) will bring up the run dialog box from which you can launch lxterminal.

          K 1 Reply Last reply Jun 6, 2016, 9:35 PM Reply Quote 0
          • K Offline
            KirAsh4 Moderator @EoF
            last edited by Jun 6, 2016, 9:35 PM

            @EoF, awesome. Thanks for that. Someone should start collecting all the various keyboard shortcuts and compile them in one post, possibly even on the wiki page. I’ve seen CTRL-W posted, this ALT-F2. One can also completely switch to a virtual console and back to the GUI by hitting CTRL-ALT-F[1-7] …

            A Life? Cool! Where can I download one of those from?

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