<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Dec 1, 2015 at 1:23 AM, Daniel Holbert <span dir="ltr"><<a href="mailto:dholbert@mozilla.com" target="_blank">dholbert@mozilla.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On 11/30/2015 09:59 AM, Daniel Holbert wrote:<br>
> On 11/28/2015 10:44 AM, Mark Banner wrote:<br>
</span><span class="">>> The best way to get eslint setup is:<br>
>><br>
>> ./mach eslint --setup<br>
><br>
</span><span class="">> FWIW, that doesn't work for me (on Ubuntu).<br>
</span>> [...]<br>
<span class="">> Filed this as <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1228761" rel="noreferrer" target="_blank">https://bugzilla.mozilla.org/show_bug.cgi?id=1228761</a><br>
<br>
<br>
</span>Is "./mach eslint --setup" expected to work at all on Linux, actually?<br>
(with system-provided nodejs & npm packages)  I ran into a chain of 3<br>
different issues when trying to get it to work (and trying to hack<br>
around each one), and eventually gave up.<br>
<br>
I've filed the things I've tripped over so far as:<br>
  <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1228761" rel="noreferrer" target="_blank">https://bugzilla.mozilla.org/show_bug.cgi?id=1228761</a><br>
  <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1229194" rel="noreferrer" target="_blank">https://bugzilla.mozilla.org/show_bug.cgi?id=1229194</a><br>
  <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1229199" rel="noreferrer" target="_blank">https://bugzilla.mozilla.org/show_bug.cgi?id=1229199</a><br>
<br>
If this is working for someone else on Ubuntu and I'm just Doing It<br>
Wrong, I'd love to know what I should be doing differently for a better<br>
experience.<br></blockquote><div><br></div><div>In my experience it works on Ubuntu if you trust "sudo ./mach eslint --setup" to do the right thing. I agree that this is not ideal and the recommended ways to fix it are documented here:<br><br><a href="https://docs.npmjs.com/getting-started/fixing-npm-permissions">https://docs.npmjs.com/getting-started/fixing-npm-permissions</a><br><br></div><div>Option 2 seems preferable.<br></div><div><br></div><div>Panos<br><br></div></div></div></div>