• 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: ENOENT: no such file or directory, open 'package.json'

Scheduled Pinned Locked Moved Troubleshooting
1 Posts 1 Posters 2.5k 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.
  • L Offline
    Leobaillard
    last edited by May 10, 2017, 1:47 PM

    Hi!

    I’ve tried to install a new MagicMirror on a brand new Rpi3 with Raspbian Pixel using the automatic script bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)".

    I had an error when pm2 was trying to be installed, saying that it couldn’t find the specified OS when doing: sudo su -c "env PATH=$PATH:/usr/bin pm2 startup linux -u pi --hp /home/pi". No worries there, I re-ran it with the right option and it worked. The problem is that when I start the mirror with: pm2 start MagicMirror, I get this error over and over again in the logs:

    0|MagicMir | Error: ENOENT: no such file or directory, open 'package.json'
    0|MagicMir |     at Error (native)
    0|MagicMir |     at Object.fs.openSync (fs.js:641:18)
    0|MagicMir |     at Object.fs.readFileSync (fs.js:509:33)
    0|MagicMir |     at Object. (/home/pi/MagicMirror/js/app.js:15:32)
    0|MagicMir |     at Module._compile (module.js:570:32)
    0|MagicMir |     at Object.Module._extensions..js (module.js:579:10)
    0|MagicMir |     at Module.load (module.js:487:32)
    0|MagicMir |     at tryModuleLoad (module.js:446:12)
    0|MagicMir |     at Function.Module._load (module.js:438:3)
    0|MagicMir |     at Module.require (module.js:497:17)
    

    I checked, in the mm.sh starting the script, there is the right cd. Also, when I manually start the mirror with: DISPLAY=:0 npm start, it works fine.

    Any ideas?

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