<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-forward-container"><br>
<br>
-------- Mensagem original --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Assunto:
</th>
<td>Bug#772784: ENOENT crash error on any NPM command</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Data: </th>
<td>Sat, 13 Dec 2014 10:39:52 -0300</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">De: </th>
<td>"Aurélio A. Heckert" <a class="moz-txt-link-rfc2396E" href="mailto:aurelio@colivre.coop.br"><aurelio@colivre.coop.br></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Empresa:
</th>
<td>Colivre</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Para: </th>
<td>Jérémy Lal <a class="moz-txt-link-rfc2396E" href="mailto:kapouer@melix.org"><kapouer@melix.org></a>,
<a class="moz-txt-link-abbreviated" href="mailto:pkg-javascript-devel@lists.alioth.debian.org">pkg-javascript-devel@lists.alioth.debian.org</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<div class="moz-cite-prefix">Em 11-12-2014 13:03, Jérémy Lal
escreveu:<br>
</div>
<blockquote cite="mid:1418313781.5210.4.camel@melix.org"
type="cite">
<pre wrap="">Le jeudi 11 décembre 2014 à 11:20 -0300, "Aurélio A. Heckert" a écrit :
</pre>
<blockquote type="cite">
<pre wrap="">Is there a new mandatory attribute on package.json?
</pre>
</blockquote>
<pre wrap="">nothing that i know.
I use npm daily (already used so many times today) and it works all
right here.
Did you install anything using npm -g ?</pre>
</blockquote>
Some things like coffee and shelljs.<br>
<br>
<blockquote cite="mid:1418313781.5210.4.camel@melix.org"
type="cite">
<pre wrap="">What do you have in /usr/local/lib/node_modules/ ?</pre>
</blockquote>
$ ls /usr/local/lib/node_modules/<br>
chai commander iconv mocha sails
temporary xml2js<br>
codo css-condense jitsu nopt shelljs
tmp yapm<br>
coffee-script iced-coffee-script mktemp package socket.io
uglify-js<br>
<br>
<blockquote cite="mid:1418313781.5210.4.camel@melix.org"
type="cite">
<pre wrap="">If you have something, put it away temporarily and check npm works
again.</pre>
</blockquote>
Wow! That works!<br>
<br>
$ sudo mv /usr/local/lib/node_modules
/usr/local/lib/node_modules_TMP<br>
$ npm help<br>
Usage: npm <command><br>
where <command> is one of:<br>
add-user, adduser, apihelp, author, ...<br>
<br>
Trying to discover a package to blame, i create a empty
/usr/local/lib/node_modules and copy back one by one, testing with
"npm help", the it crashes on <b>nopt</b>.<br>
<br>
$ npm help<br>
Error: ENOENT, open '/home/aurium/Projetos/rauzito-bot/null'<br>
<br>
$ sudo rm -r /usr/local/lib/node_modules/nopt<br>
$ npm help<br>
Usage: npm <command><br>
where <command> is one of:<br>
add-user, adduser, apihelp, author, ...<br>
<br>
$ ls /usr/local/lib/node_modules<br>
coffee-script iced-coffee-script sails temporary xml2js<br>
commander mocha shelljs uglify-js yapm<br>
<br>
Could an older /usr/local/lib/node_modules/nopt be in conflict
with /usr/lib/nodejs/nopt.js intended to be used by npm?<br>
<br>
<blockquote cite="mid:1418313781.5210.4.camel@melix.org"
type="cite">
<pre wrap="">Also do you have old or obsolete debian packages installed (not the ones
from jessie ?)
</pre>
</blockquote>
No, i'm using testing since i use Debian (10+y). This machine was
ever testing.<br>
<br>
<blockquote cite="mid:1418313781.5210.4.camel@melix.org"
type="cite">
<pre wrap="">Jérémy.
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<img src="cid:part1.04030904.00060303@colivre.coop.br"
style="float: left; margin-top:10px" align="left">
<div style="font-family:sans-serif; margin-left:130px"><font
color="gray"> <br>
<strong>Aurélio A. Heckert (aka Aurium)</strong> <br>
<a moz-do-not-send="true"
href="http://softwarelivre.org/aurium"><font color="gray">http://softwarelivre.org/aurium</font></a>
<br>
<strong>COLIVRE <small>— Coop. de Tecnologias Livres</small></strong>
<br>
<a moz-do-not-send="true" href="http://colivre.coop.br"><font
color="gray">http://colivre.coop.br</font></a> <br>
<br>
<small><strong>Inkscape</strong> — Desenhe Livremente</small>
<br>
<small><a moz-do-not-send="true"
href="http://inkscapeBrasil.org"><font color="gray">http://inkscapeBrasil.org</font></a></small>
</font></div>
</div>
<br>
</div>
<br>
</body>
</html>