-------- Mensagem original --------
Assunto:        Bug#772784: ENOENT crash error on any NPM command
Data:   Sat, 13 Dec 2014 10:39:52 -0300
De:     "Aurélio A. Heckert" <aure...@colivre.coop.br>
Empresa:        Colivre
Para: Jérémy Lal <kapo...@melix.org>, pkg-javascript-devel@lists.alioth.debian.org

Em 11-12-2014 13:03, Jérémy Lal escreveu:
Le jeudi 11 décembre 2014 à 11:20 -0300, "Aurélio A. Heckert" a écrit :
Is there a new mandatory attribute on package.json?
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 ?
Some things like coffee and shelljs.

What do you have in /usr/local/lib/node_modules/ ?
$ ls /usr/local/lib/node_modules/
chai           commander           iconv   mocha    sails temporary  xml2js
codo           css-condense        jitsu   nopt     shelljs tmp        yapm
coffee-script  iced-coffee-script  mktemp  package  socket.io uglify-js

If you have something, put it away temporarily and check npm works
Wow! That works!

$ sudo mv /usr/local/lib/node_modules /usr/local/lib/node_modules_TMP
$ npm help
Usage: npm <command>
where <command> is one of:
    add-user, adduser, apihelp, author, ...

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 *nopt*.

$ npm help
Error: ENOENT, open '/home/aurium/Projetos/rauzito-bot/null'

$ sudo rm -r /usr/local/lib/node_modules/nopt
$ npm help
Usage: npm <command>
where <command> is one of:
    add-user, adduser, apihelp, author, ...

$ ls /usr/local/lib/node_modules
coffee-script  iced-coffee-script  sails    temporary  xml2js
commander      mocha               shelljs  uglify-js  yapm

Could an older /usr/local/lib/node_modules/nopt be in conflict with /usr/lib/nodejs/nopt.js intended to be used by npm?

Also do you have old or obsolete debian packages installed (not the ones
from jessie ?)
No, i'm using testing since i use Debian (10+y). This machine was ever testing.



*Aurélio A. Heckert (aka Aurium)*
*COLIVRE — Coop. de Tecnologias Livres*

*Inkscape* — Desenhe Livremente

Pkg-javascript-devel mailing list

Reply via email to