guo-yu / player

a command line player, supports play mp3 both from uri and local stream.
261 stars 66 forks source link

Cannot Install using "npm install player" #67

Open noumantahir opened 7 years ago

noumantahir commented 7 years ago

I am trying to install this package on my system but I am getting issues

npm ERR! Linux 4.4.0-41-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "player"
npm ERR! node v4.5.0
npm ERR! npm  v2.15.9
npm ERR! code ELIFECYCLE

npm ERR! speaker@0.2.6 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the speaker@0.2.6 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the speaker package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs speaker
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! 
npm ERR!     npm owner ls speaker
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/nomo/workspace/node-js-getting-started/npm-debug.log

my node version is -

v4.5.0

michaelborn commented 7 years ago

@noumantahir I had this issue and realized it was because I had node-speaker still installed (but not referenced from my main package.json).

Run npm uninstall speaker and try installing player again, npm install player.

bfncs commented 6 years ago

For me this was fixed by installing the ALSA sources

sudo apt-get install libasound2-dev