<?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 IN STARTING MAGIC MIRROR IN PI ZERO]]></title><description><![CDATA[<p dir="auto"><strong>ERROR IN STARTING MAGIC MIRROR IN PI ZERO</strong></p>
<p dir="auto">Recently, i’m working with magic mirror in pi zero and i’m just following the step from this tutorials:<a href="https://forum.magicmirror.builders/topic/1183/how-i-got-my-magic-mirror-working-on-a-raspberry-pi-0-zero/8">https://forum.magicmirror.builders/topic/1183/how-i-got-my-magic-mirror-working-on-a-raspberry-pi-0-zero/8</a><br />
However i seems like facing some sort of problem as my magic mirror won’t start up and just showing <strong>Error localhost:8080</strong><br />
Hence i start the npm install again to check for any error and this is the code i get.<br />
I’m completely newbie this is the first time i’ve involve myself in coding<br />
Can someone who is kind enough to help me read my code and what to do next<br />
TQ</p>
<p dir="auto">pi@raspberrypi:~ $ sudo npm install<br />
npm ERR! install Couldn’t read dependencies<br />
npm ERR! package.json ENOENT, open ‘/home/pi/package.json’<br />
npm ERR! package.json This is most likely not a problem with npm itself.<br />
npm ERR! package.json npm can’t find a package.json file in your current directo                                                                                                                                                             ry.</p>
<p dir="auto">npm ERR! System Linux 4.4.11+<br />
npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install”<br />
npm ERR! cwd /home/pi<br />
npm ERR! node -v v0.10.29<br />
npm ERR! npm -v 1.4.21<br />
npm ERR! path /home/pi/package.json<br />
npm ERR! code ENOPACKAGEJSON<br />
npm ERR! errno 34<br />
npm ERR!<br />
npm ERR! Additional logging details can be found in:<br />
npm ERR!     /home/pi/npm-debug.log<br />
npm ERR! not ok code 0<br />
pi@raspberrypi:~ $ cd MagicMirror<br />
pi@raspberrypi:~/MagicMirror $ sudo npm install<br />
npm WARN engine spectron@3.7.3: wanted: {“node”:“&gt;=0.12.4”} (current: {“node”:“0                                                                                                                                                             .10.29”,“npm”:“1.4.21”})<br />
npm WARN engine webdriverio@4.12.0: wanted: {“node”:“&gt;= 4.8.5”} (current: {“node                                                                                                                                                             “:“0.10.29”,“npm”:“1.4.21”})<br />
npm WARN engine electron-download@4.1.0: wanted: {“node”:”&gt;= 4.0”} (current: {“n                                                                                                                                                             ode”:“0.10.29”,“npm”:“1.4.21”})<br />
npm ERR! 404 Not Found<br />
npm ERR! 404<br />
npm ERR! 404 ‘types/node’ is not in the npm registry.<br />
npm ERR! 404 You should bug the author to publish it<br />
npm ERR! 404 It was specified as a dependency of ‘electron’<br />
npm ERR! 404<br />
npm ERR! 404 Note that you can also install from a<br />
npm ERR! 404 tarball, folder, or http url, or git url.</p>
<p dir="auto">npm ERR! System Linux 4.4.11+<br />
npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install”<br />
npm ERR! cwd /home/pi/MagicMirror<br />
npm ERR! node -v v0.10.29<br />
npm ERR! npm -v 1.4.21<br />
npm ERR! code E404<br />
npm WARN engine path-exists@3.0.0: wanted: {“node”:“&gt;=4”} (current: {“node”:“0.1                                                                                                                                                             0.29”,“npm”:“1.4.21”})<br />
npm WARN engine env-paths@1.0.0: wanted: {“node”:“&gt;=4”} (current: {“node”:“0.10.                                                                                                                                                             29”,“npm”:“1.4.21”})<br />
npm WARN engine sumchecker@2.0.2: wanted: {“node”:“&gt;= 4.0”} (current: {“node”:“0                                                                                                                                                             .10.29”,“npm”:“1.4.21”})<br />
npm WARN engine deep-extend@0.4.2: wanted: {“node”:“&gt;=0.12.0”,“iojs”:“&gt;=1.0.0”}                                                                                                                                                              (current: {“node”:“0.10.29”,“npm”:“1.4.21”})<br />
npm WARN engine hosted-git-info@2.6.0: wanted: {“node”:“&gt;=4”} (current: {“node”:“0.10.29”,“npm”:“1.4.21”})<br />
\</p>
<blockquote>
<p dir="auto">electron-chromedriver@1.7.1 install /home/pi/MagicMirror/node_modules/spectron/node_modules/electron-chromedriver<br />
node ./download-chromedriver.js</p>
</blockquote>
<p dir="auto">/home/pi/MagicMirror/node_modules/spectron/node_modules/electron-chromedriver/node_modules/electron-download/lib/index.js:3<br />
const debug = require(‘debug’)(‘electron-download’)<br />
^^^^^<br />
SyntaxError: Use of const in strict mode.<br />
at Module._compile (module.js:439:25)<br />
at Object.Module._extensions…js (module.js:474:10)<br />
at Module.load (module.js:356:32)<br />
at Function.Module._load (module.js:312:12)<br />
at Module.require (module.js:364:17)<br />
at require (module.js:380:17)<br />
at Object. (/home/pi/MagicMirror/node_modules/spectron/node_modules/electron-chromedriver/download-chromedriver.js:3:24)<br />
at Module._compile (module.js:456:26)<br />
at Object.Module._extensions…js (module.js:474:10)<br />
at Module.load (module.js:356:32)<br />
npm WARN This failure might be due to the use of legacy binary “node”<br />
npm WARN For further explanations, please read<br />
/usr/share/doc/nodejs/README.Debian</p>
<p dir="auto">npm ERR! error rolling back Error: ENOTEMPTY, rmdir ‘/home/pi/MagicMirror/node_modules/spectron/node_modules/webdriverio/build/lib/protocol’<br />
npm ERR! error rolling back  spectron@3.7.3 { [Error: ENOTEMPTY, rmdir ‘/home/pi/MagicMirror/node_modules/spectron/node_modules/webdriverio/build/lib/protocol’]<br />
npm ERR! error rolling back   errno: 53,<br />
npm ERR! error rolling back   code: ‘ENOTEMPTY’,<br />
npm ERR! error rolling back   path: ‘/home/pi/MagicMirror/node_modules/spectron/node_modules/webdriverio/build/lib/protocol’ }<br />
npm ERR!<br />
npm ERR! Additional logging details can be found in:<br />
npm ERR!     /home/pi/MagicMirror/npm-debug.log<br />
npm ERR! not ok code 0</p>
]]></description><link>https://forum.magicmirror.builders/topic/7067/error-in-starting-magic-mirror-in-pi-zero</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 23:05:01 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/7067.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Apr 2018 17:53:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ERROR IN STARTING MAGIC MIRROR IN PI ZERO on Fri, 27 Apr 2018 14:55:21 GMT]]></title><description><![CDATA[<p dir="auto">A couple things. First, please use the markdown features of the forum to make your code easier to read. There’s <a href="https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code" target="_blank" rel="noopener noreferrer nofollow ugc">a nice tutorial on Git</a>.</p>
<p dir="auto">Secondly, you need to run the <code>npm install</code> command in the Magic Mirror folder. So try this:</p>
<pre><code>cd ~/MagicMirror
npm install
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/39003</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39003</guid><dc:creator><![CDATA[bhepler]]></dc:creator><pubDate>Fri, 27 Apr 2018 14:55:21 GMT</pubDate></item></channel></rss>