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

Error during installation of MM2

Scheduled Pinned Locked Moved Bug Hunt
5 Posts 3 Posters 2.9k Views 3 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.
  • R Offline
    rudibarani Project Sponsor
    last edited by Jun 20, 2017, 10:50 PM

    I frequently experience the following errors when installing MM2:

    Installing MM2 using

    curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash
    

    always leads to the following error message

    MagicMirror installation successful!
    npm notice created a lockfile as package-lock.json. You should commit this file.
    npm WARN grunt-stylelint@0.8.0 requires a peer of stylelint@^7.8.0 but none was installed.
    npm WARN stylelint-config-standard@16.0.0 requires a peer of stylelint@^7.8.0 but none was installed.
    
    added 568 packages in 655.466s
    Dependencies installation Done!
    Check plymouth installation ...
    Splashscreen: Checking themes directory.
    Splashscreen: Create theme directory if not exists.
    Splashscreen: Theme copied successfully.
    Splashscreen: Changed theme to MagicMirror successfully.
    bash: Zeile 153: Syntaxfehler beim unerwarteten Wort `then'
    bash: Zeile 153: `then'
    

    I am using a RasPi with Jessie and node v6.10.3.
    MM2 seems to work fine afterwards, but maybe we could eliminate this error message?

    S 1 Reply Last reply Jun 22, 2017, 7:53 AM Reply Quote 0
    • C Offline
      cowboysdude Module Developer
      last edited by Jun 21, 2017, 12:31 AM

      Go with the manual install here:

      Manual Installation

      Download and install the latest Node.js version.
      Clone the repository and check out the master branch: git clone https://github.com/MichMich/MagicMirror
      Enter the repository: cd ~/MagicMirror
      Install and run the app: npm install && npm start
      Important: npm start does not work via SSH, use DISPLAY=:0 nohup npm start & instead. This starts the mirror on the remote display.

      Note: if you want to debug on Raspberry Pi you can use npm start dev which will start the MagicMirror app with Dev Tools enabled.

      1 Reply Last reply Reply Quote 1
      • R Offline
        rudibarani Project Sponsor
        last edited by Jun 21, 2017, 5:52 AM

        Thanks for the advice. I will give it a try.

        As it always run fine despite the error messages, I was more concerned about the user experience when using the promoted way to install it.

        C 1 Reply Last reply Jun 21, 2017, 11:15 AM Reply Quote 0
        • C Offline
          cowboysdude Module Developer @rudibarani
          last edited by Jun 21, 2017, 11:15 AM

          @rudibarani said in Error during installation of MM2:

          Thanks for the advice. I will give it a try.

          As it always run fine despite the error messages, I was more concerned about the user experience when using the promoted way to install it.

          If it runs fine then ignore the error messages. From time to time error messages occur and at times really aren’t major. As long as it’s running and working fine that’s okay ;)

          1 Reply Last reply Reply Quote 0
          • S Offline
            strawberry 3.141 Project Sponsor Module Developer @rudibarani
            last edited by Jun 22, 2017, 7:53 AM

            @rudibarani the command you used to install MM is deprecated.

            Use bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)" instead.

            Please create a github issue if you need help, so I can keep track

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