audiojs / audio

Class for high-level audio manipulations [NOT MAINTAINED]
MIT License
240 stars 9 forks source link

Error during npm install #51

Closed EugeneHerasymchuk closed 6 years ago

EugeneHerasymchuk commented 6 years ago

During npm i audio I've got an error

> speaker@0.3.1 install /home/yevhenii/Documents/node/audio-howler/node_modules/speaker
> node-gyp rebuild

make: Entering directory '/home/yevhenii/Documents/node/audio-howler/node_modules/speaker/build'
  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
compilation terminated.
deps/mpg123/output.target.mk:110: recipe for target 'Release/obj.target/output/deps/mpg123/src/output/alsa.o' failed
make: *** [Release/obj.target/output/deps/mpg123/src/output/alsa.o] Error 1
make: Leaving directory '/home/yevhenii/Documents/node/audio-howler/node_modules/speaker/build'

The purpose is to use audio in browser environment in Vue.js project

EugeneHerasymchuk commented 6 years ago

Solved installing sudo apt-get install libasound2-dev