<?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 when running sudo npm install. magicmirror@2.3.1 cd vendor && yon install (wd=/home/pi/MagicMirror)]]></title><description><![CDATA[<p dir="auto">I am trying to get Magic Mirror running on my Pi Zero W headless. I have followed a few different tutorials, mostly saying the same stuff, and I was able to get Magic Mirror, Node, and npm installed fine, but when I run “sudo npm install” I get the error pictured below. I thought it was because nodejs was not up to date, but I have updated it and it is still not working.</p>
<p dir="auto"><img src="/assets/uploads/files/1524507375847-screen-shot-2018-04-23-at-2.07.34-pm.png" alt="0_1524507375482_Screen Shot 2018-04-23 at 2.07.34 PM.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/topic/7046/error-when-running-sudo-npm-install-magicmirror-2-3-1-cd-vendor-yon-install-wd-home-pi-magicmirror</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 05:29:09 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/7046.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Apr 2018 18:17:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error when running sudo npm install. magicmirror@2.3.1 cd vendor && yon install (wd=/home/pi/MagicMirror) on Tue, 24 Apr 2018 07:24:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mykle1" aria-label="Profile: Mykle1">@<bdi>Mykle1</bdi></a> said in <a href="/post/38815">Error when running sudo npm install. magicmirror@2.3.1 cd vendor &amp;&amp; yon install (wd=/home/pi/MagicMirror)</a>:</p>
<blockquote>
<p dir="auto">I could be mistaken but I believe that using <strong>sudo</strong> <code>npm install</code> can cause problems. Installation of MM and its dependencies should be done as a normal user.</p>
<p dir="auto">For what it’s worth.</p>
</blockquote>
<p dir="auto">Good point. I just saw his <code>sudo npm install</code> and followed along without thinking.<br />
You can try to uninstall stylelint again with <code>npm uninstall stylelint</code>(with or without sudo , whatever works) and install it again <strong><strong>without</strong></strong> the sudo command.<br />
If this does not yield any success in this issue someone fixed a similar warning (<a href="https://github.com/KraigM/homebridge-harmonyhub/issues/97" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/KraigM/homebridge-harmonyhub/issues/97</a>).<br />
Never the less this shouldn’t all be necessary. Maybe it’s time to start over frech again and really be cautious about every step you do.</p>
]]></description><link>https://forum.magicmirror.builders/post/38837</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38837</guid><dc:creator><![CDATA[Patex]]></dc:creator><pubDate>Tue, 24 Apr 2018 07:24:57 GMT</pubDate></item><item><title><![CDATA[Reply to Error when running sudo npm install. magicmirror@2.3.1 cd vendor && yon install (wd=/home/pi/MagicMirror) on Mon, 23 Apr 2018 23:44:57 GMT]]></title><description><![CDATA[<p dir="auto">I could be mistaken but I believe that using <strong>sudo</strong> <code>npm install</code> can cause problems. Installation of MM and its dependencies should be done as a normal user.</p>
<p dir="auto">For what it’s worth.</p>
]]></description><link>https://forum.magicmirror.builders/post/38815</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38815</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Mon, 23 Apr 2018 23:44:57 GMT</pubDate></item><item><title><![CDATA[Reply to Error when running sudo npm install. magicmirror@2.3.1 cd vendor && yon install (wd=/home/pi/MagicMirror) on Mon, 23 Apr 2018 23:28:05 GMT]]></title><description><![CDATA[<p dir="auto">Ok I did what you said and it told me that nodejs needed to be a more recent version so I updated it again to a version that is acceptable. This is the error I am getting now.</p>
<p dir="auto"><img src="/assets/uploads/files/1524526015530-screen-shot-2018-04-23-at-7.26.09-pm.png" alt="0_1524526014108_Screen Shot 2018-04-23 at 7.26.09 PM.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Then, my basic CLI knowledge made me think I should add sudo so…</p>
<p dir="auto"><img src="/assets/uploads/files/1524526077668-screen-shot-2018-04-23-at-7.26.27-pm.png" alt="0_1524526077438_Screen Shot 2018-04-23 at 7.26.27 PM.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Any advice?</p>
]]></description><link>https://forum.magicmirror.builders/post/38814</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38814</guid><dc:creator><![CDATA[greenwaydev]]></dc:creator><pubDate>Mon, 23 Apr 2018 23:28:05 GMT</pubDate></item><item><title><![CDATA[Reply to Error when running sudo npm install. magicmirror@2.3.1 cd vendor && yon install (wd=/home/pi/MagicMirror) on Mon, 23 Apr 2018 22:41:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/greenwaydev" aria-label="Profile: greenwaydev">@<bdi>greenwaydev</bdi></a> said in <a href="/post/38784">Error when running sudo npm install. magicmirror@2.3.1 cd vendor &amp;&amp; yon install (wd=/home/pi/MagicMirror)</a>:</p>
<blockquote>
<p dir="auto">Magic Mirror running on my Pi Zero W headless. I have followed a few different tutorials, mostly saying the same stuff, and I was</p>
</blockquote>
<p dir="auto">The error occurs due to incompatible peer dependencies. Npm (<em>recently</em>) introduced the concept of peer dependencies which are dependencies expected to be provided  separately to ensure compatibility between different apis.</p>
<p dir="auto">I am surprised that in your case mm fails to finish the installation as for me I only get a warning.</p>
<p dir="auto">My attempt to fix this would be to:<br />
For now try run <code>sudo npm i stylelint@latest</code> before running <code>sudo npm install</code></p>
<p dir="auto">If this does not work change the config file to include <code>"stylelint": "^9.0.0"</code> instead of <code>"stylelint": "^8.4.0"</code> and try again.</p>
<p dir="auto">Be aware that you usually should never do the second step if you don’t exactly know what you are doing. Upgrading a major version (the version number at the very beginning) indicates a new release with potential api breaking changes. (If semversioning is used). But since your error log indicates that stylelint config is happy with either version, and the dependency is not really used “in production” this <strong>might</strong> be worth a shot.</p>
]]></description><link>https://forum.magicmirror.builders/post/38811</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/38811</guid><dc:creator><![CDATA[Patex]]></dc:creator><pubDate>Mon, 23 Apr 2018 22:41:01 GMT</pubDate></item></channel></rss>