B
B
bagos2015-04-02 13:25:16
Node.js
bagos, 2015-04-02 13:25:16

How to solve nodejs error in Ubuntu when downloading a package?

Good afternoon!
When trying to download some packages, I get an error
npm install lame
npm install speaker
Costs Ubuntu 14
Installed nodes, nodejs-legacy
error:

> [email protected] install /media/psf/Home/Documents/Unix/node/sound/node_modules/speaker
> node-gyp rebuild
make: Entering directory `/media/psf/Home/Documents/Unix/node/sound/ node_modules/speaker/build'
make: Warning: File `deps/mpg123/test.target.mk' has modification time 3.6e+03 s in the future
CC(target) Release/obj.target/output/deps/mpg123/src /output/alsa.o
../deps/mpg123/src/output/alsa.c:19:28: fatal error: alsa/asoundlib.h: No such file or directory
#include
^
compilation terminated.
make: *** [Release/obj.target/output/deps/mpg123/src/output/alsa.o] Error 1
make: Leaving directory `/media/psf/Home/Documents/Unix/node/sound/node_modules/ speaker/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit(events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-32-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /media/psf/Home/Documents/Unix/node/sound/node_modules/speaker
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations,
/usr/share/doc/nodejs/README.Debian
npm ERR! weird error 1
npm ERR! not ok code 0

The recommendations that I found on the net did not help,
it was to make a link to nodejs, and install nodejs-legacy

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2015-04-02
@bagos

npm on ubunt writes about this fucking legacy for any sneeze, do not pay attention. The real problem is above:
A quick google turns up this: https://github.com/TooTallNate/node-speaker/issues/1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question