<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Error: ENOENT: no such file or directory, open &#x27;package.json&#x27;]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">I’ve tried to install a new MagicMirror on a brand new Rpi3 with Raspbian Pixel using the automatic script <code>bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)"</code>.</p>
<p dir="auto">I had an error when pm2 was trying to be installed, saying that it couldn’t find the specified OS when doing: <code>sudo su -c "env PATH=$PATH:/usr/bin pm2 startup linux -u pi --hp /home/pi"</code>. No worries there, I re-ran it with the right option and it worked. The problem is that when I start the mirror with: <code>pm2 start MagicMirror</code>, I get this error over and over again in the logs:</p>
<pre><code>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)
</code></pre>
<p dir="auto">I checked, in the <code>mm.sh</code> starting the script, there is the right <code>cd</code>. Also, when I manually start the mirror with: <code>DISPLAY=:0 npm start</code>, it works fine.</p>
<p dir="auto">Any ideas?</p>
]]></description><link>https://forum.magicmirror.builders/topic/2533/error-enoent-no-such-file-or-directory-open-package-json</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 01:37:42 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/2533.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 May 2017 13:47:52 GMT</pubDate><ttl>60</ttl></channel></rss>