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.

    trouble with restarting

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    2 Posts 2 Posters 659 Views 1 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
      rcsmith2011
      last edited by

      when my i restart my rasberry pi. pm2 goes into an error state. and magic mirror won’t start again.

      { Error: ENOENT: no such file or directory, open ‘package.json’
      at Object.fs.openSync (fs.js:660:18)
      at Object.fs.readFileSync (fs.js:565:33)
      at Object. (/home/pi/MagicMirror/js/app.js:15:32)
      at Module._compile (internal/modules/cjs/loader.js:654:30)
      at Object.Module._extensions…js (internal/modules/cjs/loader.js:665:10)
      at Module.load (internal/modules/cjs/loader.js:566:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
      at Function.Module._load (internal/modules/cjs/loader.js:498:3)
      at Function._load (/usr/lib/node_modules/pm2/node_modules/@pm2/io/build/main/metrics/httpMetrics.js:172:43)
      at Module.require (internal/modules/cjs/loader.js:598:17)
      errno: -2,
      code: ‘ENOENT’,
      syscall: ‘open’,
      path: ‘package.json’ }

      how do i fix this?

      bheplerB 1 Reply Last reply Reply Quote 0
      • bheplerB Offline
        bhepler Module Developer @rcsmith2011
        last edited by

        @rcsmith2011 - It looks like your installation got corrupted somehow. I would back up my config.js file and then wipe the MagicMirror folder. Clone from the git repository, run the npm install command from the MagicMirror folder, restore your config.js file and then reinstall your modules.

        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