<?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 on npm install]]></title><description><![CDATA[<p dir="auto">So I had a working copy of MagicMirror2 running on a Raspberry Pi 2, but I was running node at version 4.2 (I think, though it could have been npm that was complaining) so I finally bit the bullet and decided to upgrade. Now I’m running node v11.6.0 and npm v6.5.0, but when I try npm install &amp;&amp; npm start in the MagicMirror directory, I get an error after it hangs for 30-60 minutes on one piece installing. It’s not always consistent on where it fails and I’ve tried multiple times to no avail. I’ve tried removing and reinstalling nodejs. I’ve tried copying away the MagicMirror directory and running the install script and everything fails at the same point. Here’s the output:</p>
<pre><code>pi@raspberrypi:~/MagicMirror $ npm install &amp;&amp; npm start
npm WARN deprecated time-grunt@2.0.0: Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates.
Unhandled rejection Error: Command failed: /usr/bin/git clone --mirror -q git://github.com/patriksimek/vm2.git /home/pi/.npm/_cacache/tmp/git-clone-6428927c/.git
warning: templates not found /tmp/pacote-git-template-tmp/git-clone-1f4f605f
fatal: read error: Connection timed out

    at ChildProcess.exithandler (child_process.js:294:12)
    at ChildProcess.emit (events.js:188:13)
    at maybeClose (internal/child_process.js:978:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     &lt;https://npm.community&gt;

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2019-01-06T06_19_57_831Z-debug.log

</code></pre>
<p dir="auto">I should note the error appears to be due to a connection time-out, and I’ve checked my dns and pings work fine to the outside world. Does anyone have any thoughts?</p>
]]></description><link>https://forum.magicmirror.builders/topic/9420/error-on-npm-install</link><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 12:05:37 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/9420.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 06 Jan 2019 14:28:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error on npm install on Mon, 07 Jan 2019 16:53:07 GMT]]></title><description><![CDATA[<p dir="auto">Seems my reply to this got lost…</p>
<p dir="auto">Got this working! Removed the .nvm directory, removed the symlinks, shutdown pm2 and re-ran the installation script and it all went in fine!</p>
<pre><code>sudo rm -rf ~/.nvm
sudo rm -f /usr/local/bin/node
sudo rm -f /usr/local/bin/nvm
pm2 stop mm
sudo rm -rf ~/MagicMirror
bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)"
</code></pre>
<p dir="auto">I got an error on npm not being the right version, so upgraded that:</p>
<pre><code>sudo npm i -g npm
</code></pre>
<p dir="auto">(Note sudo is working now, which it wasn’t before) And now my node and npm versions look good and pm2 is running MagicMirror again!</p>
<pre><code>pi@raspberrypi:/ $ node -v
v9.11.2
pi@raspberrypi:/ $ npm -v
6.5.0
</code></pre>
<p dir="auto">Thanks everyone for the help!</p>
]]></description><link>https://forum.magicmirror.builders/post/49632</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/49632</guid><dc:creator><![CDATA[rmeskill]]></dc:creator><pubDate>Mon, 07 Jan 2019 16:53:07 GMT</pubDate></item><item><title><![CDATA[Reply to Error on npm install on Mon, 07 Jan 2019 13:52:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmeskill" aria-label="Profile: rmeskill">@<bdi>rmeskill</bdi></a> said in <a href="/post/49607">Error on npm install</a>:</p>
<blockquote>
<p dir="auto">.nvm/</p>
</blockquote>
<p dir="auto">looks like node version manager (nvm) was used to install these…</p>
<p dir="auto">you could temporarily remove those folders from the PATH environment variable.</p>
<p dir="auto">or search for remove nvm… and found</p>
<p dir="auto">No, all you need to do is remove $NVM_DIR (~/.nvm is the default), and the relevant 2 lines in your profile file (but you also can leave those behind, since they’re guarded by a file existence check).</p>
]]></description><link>https://forum.magicmirror.builders/post/49609</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/49609</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 07 Jan 2019 13:52:49 GMT</pubDate></item><item><title><![CDATA[Reply to Error on npm install on Mon, 07 Jan 2019 13:48:31 GMT]]></title><description><![CDATA[<p dir="auto">Now I’m trying to remove npm and nodejs to start again, but even after I’ve run apt-get remove npm nodejs I still get this:</p>
<pre><code>pi@raspberrypi:~/MagicMirror $ which npm
/home/pi/.nvm/versions/node/v11.6.0/bin/npm
pi@raspberrypi:~/MagicMirror $ which node
/home/pi/.nvm/versions/node/v11.6.0/bin/node
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/49607</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/49607</guid><dc:creator><![CDATA[rmeskill]]></dc:creator><pubDate>Mon, 07 Jan 2019 13:48:31 GMT</pubDate></item><item><title><![CDATA[Reply to Error on npm install on Mon, 07 Jan 2019 00:48:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmeskill" aria-label="Profile: rmeskill">@<bdi>rmeskill</bdi></a> that is a surprise</p>
]]></description><link>https://forum.magicmirror.builders/post/49573</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/49573</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 07 Jan 2019 00:48:26 GMT</pubDate></item><item><title><![CDATA[Reply to Error on npm install on Mon, 07 Jan 2019 00:20:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> said in <a href="/post/49550">Error on npm install</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmeskill" aria-label="Profile: rmeskill">@<bdi>rmeskill</bdi></a> looks like node is also downlevel</p>
</blockquote>
<p dir="auto">Do you mean I should upgrade it? this isn’t enough:</p>
<pre><code>pi@raspberrypi:~/MagicMirror $ node -v
v11.6.0
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/49572</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/49572</guid><dc:creator><![CDATA[rmeskill]]></dc:creator><pubDate>Mon, 07 Jan 2019 00:20:48 GMT</pubDate></item><item><title><![CDATA[Reply to Error on npm install on Sun, 06 Jan 2019 20:01:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmeskill" aria-label="Profile: rmeskill">@<bdi>rmeskill</bdi></a> looks like node is also downlevel</p>
]]></description><link>https://forum.magicmirror.builders/post/49550</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/49550</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 06 Jan 2019 20:01:12 GMT</pubDate></item><item><title><![CDATA[Reply to Error on npm install on Sun, 06 Jan 2019 19:49:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paddyhughes" aria-label="Profile: paddyhughes">@<bdi>paddyhughes</bdi></a> said in <a href="/post/49543">Error on npm install</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmeskill" aria-label="Profile: rmeskill">@<bdi>rmeskill</bdi></a> try do it in the MagicMirror folder<br />
sudo npm i -g npm</p>
</blockquote>
<p dir="auto">Sudo still doesn’t work, but I tried it again just ‘npm i -g npm’ in the MagicMirror folder. Now I’m trying npm install again in the MagicMirror folder again, so I guess we’ll see, but it looks like it’s stuck at the same point as last time</p>
]]></description><link>https://forum.magicmirror.builders/post/49547</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/49547</guid><dc:creator><![CDATA[rmeskill]]></dc:creator><pubDate>Sun, 06 Jan 2019 19:49:55 GMT</pubDate></item><item><title><![CDATA[Reply to Error on npm install on Sun, 06 Jan 2019 19:42:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paddyhughes" aria-label="Profile: paddyhughes">@<bdi>paddyhughes</bdi></a> -g means global, not mm specific.</p>
]]></description><link>https://forum.magicmirror.builders/post/49545</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/49545</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 06 Jan 2019 19:42:15 GMT</pubDate></item><item><title><![CDATA[Reply to Error on npm install on Sun, 06 Jan 2019 19:36:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmeskill" aria-label="Profile: rmeskill">@<bdi>rmeskill</bdi></a> try do it in the MagicMirror folder<br />
sudo npm i -g npm</p>
]]></description><link>https://forum.magicmirror.builders/post/49543</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/49543</guid><dc:creator><![CDATA[paddyhughes]]></dc:creator><pubDate>Sun, 06 Jan 2019 19:36:38 GMT</pubDate></item><item><title><![CDATA[Reply to Error on npm install on Sun, 06 Jan 2019 19:34:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmeskill" aria-label="Profile: rmeskill">@<bdi>rmeskill</bdi></a> said in <a href="/post/49541">Error on npm install</a>:</p>
<blockquote>
<p dir="auto">Trying just with npm i -g npm instead…</p>
</blockquote>
<p dir="auto">Did give me a positive output:</p>
<pre><code>Trying just with npm i -g npm instead…
</code></pre>
<p dir="auto">Trying npm install again…</p>
]]></description><link>https://forum.magicmirror.builders/post/49542</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/49542</guid><dc:creator><![CDATA[rmeskill]]></dc:creator><pubDate>Sun, 06 Jan 2019 19:34:26 GMT</pubDate></item><item><title><![CDATA[Reply to Error on npm install on Sun, 06 Jan 2019 19:28:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paddyhughes" aria-label="Profile: paddyhughes">@<bdi>paddyhughes</bdi></a> said in <a href="/post/49490">Error on npm install</a>:</p>
<blockquote>
<p dir="auto">I just installed a module and it asked me to update NPM think i did it in the root directory not MagicMirror one can be sure.<br />
This is what worked for me<br />
sudo npm i -g npm</p>
</blockquote>
<p dir="auto">sudo npm i -g npm didn’t work for me, got this error:</p>
<pre><code>pi@raspberrypi:~ $ sudo npm i -g npm
/usr/local/lib/node_modules/npm/bin/npm-cli.js:85
      let notifier = require('update-notifier')({pkg})
      ^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:414:25)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:467:10)
    at startup (node.js:134:18)
    at node.js:961:3
</code></pre>
<p dir="auto">Trying just with npm i -g npm instead…</p>
]]></description><link>https://forum.magicmirror.builders/post/49541</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/49541</guid><dc:creator><![CDATA[rmeskill]]></dc:creator><pubDate>Sun, 06 Jan 2019 19:28:26 GMT</pubDate></item><item><title><![CDATA[Reply to Error on npm install on Sun, 06 Jan 2019 15:48:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmeskill" aria-label="Profile: rmeskill">@<bdi>rmeskill</bdi></a></p>
<p dir="auto">I just installed a module and it asked me to update NPM think i did it in the root directory not MagicMirror one can be sure.</p>
<p dir="auto">This is what worked for me<br />
sudo npm i -g npm</p>
]]></description><link>https://forum.magicmirror.builders/post/49490</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/49490</guid><dc:creator><![CDATA[paddyhughes]]></dc:creator><pubDate>Sun, 06 Jan 2019 15:48:01 GMT</pubDate></item><item><title><![CDATA[Reply to Error on npm install on Sun, 06 Jan 2019 14:32:12 GMT]]></title><description><![CDATA[<p dir="auto">I’ve run npm cache clean --force also to no avail. And here’s the output of the .log file referenced in the initial error:</p>
<p dir="auto">pi@raspberrypi:~ $ tail /home/pi/.npm/_logs/2019-01-06T14_26_53_131Z-debug.log<br />
12308 http fetch GET 200 <a href="https://registry.npmjs.org/core-js/-/core-js-2.5.1.tgz" target="_blank" rel="noopener noreferrer nofollow ugc">https://registry.npmjs.org/core-js/-/core-js-2.5.1.tgz</a> 48668ms<br />
12309 silly extract core-js@2.5.1 extracted to /home/pi/MagicMirror/node_modules/.staging/core-js-bce1a382 (63355ms)<br />
12310 http fetch GET 200 <a href="https://registry.npmjs.org/clarinet/-/clarinet-0.12.3.tgz" target="_blank" rel="noopener noreferrer nofollow ugc">https://registry.npmjs.org/clarinet/-/clarinet-0.12.3.tgz</a> 60019ms<br />
12311 silly extract clarinet@^0.12.0 extracted to /home/pi/MagicMirror/node_modules/.staging/clarinet-d9485acf (60537ms)<br />
12312 http fetch GET 200 <a href="https://registry.npmjs.org/rxjs/-/rxjs-6.3.3.tgz" target="_blank" rel="noopener noreferrer nofollow ugc">https://registry.npmjs.org/rxjs/-/rxjs-6.3.3.tgz</a> 216457ms<br />
12313 silly extract rxjs@^6.1.0 extracted to /home/pi/MagicMirror/node_modules/.staging/rxjs-ec2c3fab (217547ms)<br />
12314 timing npm Completed in 9958812ms<br />
12315 error cb() never called!<br />
12316 error This is an error with npm itself. Please report this error at:<br />
12317 error <a href="https://npm.community" target="_blank" rel="noopener noreferrer nofollow ugc">https://npm.community</a></p>
]]></description><link>https://forum.magicmirror.builders/post/49479</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/49479</guid><dc:creator><![CDATA[rmeskill]]></dc:creator><pubDate>Sun, 06 Jan 2019 14:32:12 GMT</pubDate></item></channel></rss>