[Pkg-javascript-devel] Bug#756607: Bug#756607: npm: Confusing error with binary node modules
Jérémy Lal
jerry at edagames.com
Thu Jul 31 10:23:09 UTC 2014
Le jeudi 31 juillet 2014 à 11:30 +0200, Matthijs Kooijman a écrit :
Package: npm
> Version: 1.4.21+ds-1
> Severity: normal
>
> Dear maintainer,
>
> when installing the serialport package through npm, I get the
following
> messages:
>
> matthijs at grubby:~$ npm install -g serialport
> /home/matthijs/.node_modules/bin/serialportterm
-> /home/matthijs/.node_modules/lib/node_modules/serialport/bin/serialportTerminal.js
> /home/matthijs/.node_modules/bin/serialportlist
-> /home/matthijs/.node_modules/lib/node_modules/serialport/bin/serialportList.js
>
> > serialport at 1.4.2
install /home/matthijs/.node_modules/lib/node_modules/serialport
> > node-pre-gyp install --fallback-to-build
>
> sh: 1: node-pre-gyp: not found
> npm WARN This failure might be due to the use of legacy binary "node"
> npm WARN For further explanations, please read
> /usr/share/doc/nodejs/README.Debian
>
> ...
I haven't figured out what the actual problem is yet, but I want to
point this message:
>
> npm WARN This failure might be due to the use of legacy binary "node"
> npm WARN For further explanations, please read
> /usr/share/doc/nodejs/README.Debian
>
>
> However, the referenced README.Debian doesn't actually talk about
anything
> related at all - nothing in there helps me solve this problem.
README.Debian
> from the npm package doesn't help either.
>
> Perhaps this info was removed at some point?
>
The info is about "nodejs command" at the end of
/usr/share/doc/nodejs/README.Debian
It is true it can be confusing. I'm open to suggestions.
Jérémy.
PS:
Mind that this error pops up everytime. We didn't find a better way to
tell "it failed possibly because of nodejs rename, or not".
Meaning the error you got might be for a totally different reason:
here it seems you miss node-pre-gyp module.
More information about the Pkg-javascript-devel
mailing list