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 dependencies not installed on fresh MM2 installation

    Scheduled Pinned Locked Moved Solved Troubleshooting
    10 Posts 3 Posters 3.0k 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.
    • M Offline
      MWel1977
      last edited by

      NOPE! It’s not due to poor geust network at work. I still can’t install the Dependencies.
      I do have Node because node -v is resulting in v8.11.1.
      but it can’t find npm. so I’ll install npm meself.

      1 Reply Last reply Reply Quote 0
      • M Offline
        MWel1977
        last edited by

        I’m starting to get angry!!!

        pi@raspberrypi:~/MagicMirror $ git pull
        Already up-to-date.
        pi@raspberrypi:~/MagicMirror $ npm start
        
        > magicmirror@2.6.0 start /home/pi/MagicMirror
        > sh run-start.sh
        
        run-start.sh: 4: run-start.sh: electron: not found
        npm ERR! file sh
        npm ERR! code ELIFECYCLE
        npm ERR! errno ENOENT
        npm ERR! syscall spawn
        npm ERR! magicmirror@2.6.0 start: `sh run-start.sh`
        npm ERR! spawn ENOENT
        npm ERR! 
        npm ERR! Failed at the magicmirror@2.6.0 start script.
        npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
        npm WARN Local package.json exists, but node_modules missing, did you mean to install?
        
        npm ERR! A complete log of this run can be found in:
        npm ERR!     /home/pi/.npm/_logs/2019-01-17T22_37_37_361Z-debug.log
        pi@raspberrypi:~/MagicMirror $ 
        

        Now it can’t find Electron. :face_with_steam_from_nose: :face_with_steam_from_nose: :angry_face:

        1 Reply Last reply Reply Quote 0
        • M Offline
          MWel1977
          last edited by

          UPDATE:
          Found that npm i electron in the folder “MagicMirror” does the trick.
          But now it “ENOENT” that’s causing problems!

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @MWel1977
            last edited by

            @mwel1977 said in npm dependencies not installed on fresh MM2 installation:

            But now it “ENOENT” that’s causing problems!

            ENOENT is file not found…

            can u post the full error…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • M Offline
              MWel1977
              last edited by

              UPDATE:
              SUCCES!!! YES!!!:smiling_face_with_open_mouth_smiling_eyes: :smiling_face_with_open_mouth_smiling_eyes: :smiling_face_with_open_mouth_smiling_eyes: :smiling_face_with_open_mouth_smiling_eyes: :smiling_face_with_open_mouth_smiling_eyes:
              I just had to install npm in the MagicMirror folder!
              My test bed for the MagicMirror is running again! :face_with_stuck-out_tongue_winking_eye: :face_with_stuck-out_tongue_winking_eye: :face_with_stuck-out_tongue_winking_eye:

              1 Reply Last reply Reply Quote 2
              • S Offline
                sdetweil
                last edited by

                great news… thanks for the feedback

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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