Error during installation of MM2



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


  • Module Developer

    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.



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


  • Module Developer

    @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 ;)



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


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.