Comments (4)
Your error log showed that libasound2-dev
was required.
On Debian/Ubuntu, the ALSA backend is selected by default, so be sure to have the alsa.h header file in place:
sudo apt-get install libasound2-dev
from player.
Did you try node-speaker v0.2.3?
I installed v0.2.4 and it was ok.
> [email protected] install /Users/Turing/GitHub/public/player/node_modules/speaker
> node-gyp rebuild
CC(target) Release/obj.target/output/deps/mpg123/src/output/coreaudio.o
LIBTOOL-STATIC Release/liboutput.a
CXX(target) Release/obj.target/binding/src/binding.o
SOLINK_MODULE(target) Release/binding.node
SOLINK_MODULE(target) Release/binding.node: Finished
......
[email protected] node_modules/speaker
├── [email protected]
├── [email protected]
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
from player.
Hey can you help me pls got some weird errors i dont understand. I have gone through https://www.robertkehoe.com/2015/03/fix-node-gyp-rebuild-error-on-windows/
Got it to work on my mac. Windows now luck so far.
BTW why can i play songs in a sub dir?
In root folder it is working just fine.
$ npm install player -g
> speaker@0.2.1 install G:\Jonas\AppData\Roaming\npm\node_modules\player\node_modules\speaker
> node-gyp rebuild
G:\Jonas\AppData\Roaming\npm\node_modules\player\node_modules\speaker>if not defined npm_config_node_gyp (node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (rebuild)
gyp ERR! configure error
gyp ERR! stack Error: spawn C:\Python27 ENOENT
gyp ERR! stack at exports._errnoException (util.js:746:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
gyp ERR! stack at child_process.js:1144:20
gyp ERR! stack at process._tickCallback (node.js:355:11)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd G:\Jonas\AppData\Roaming\npm\node_modules\player\node_modules\speaker
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
> lame@1.1.1 install G:\Jonas\AppData\Roaming\npm\node_modules\player\node_modules\lame
> node-gyp rebuild
G:\Jonas\AppData\Roaming\npm\node_modules\player\node_modules\lame>if not defined npm_config_node_gyp (node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (rebuild)
gyp ERR! configure error
gyp ERR! stack Error: spawn C:\Python27 ENOENT
gyp ERR! stack at exports._errnoException (util.js:746:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
gyp ERR! stack at child_process.js:1144:20
gyp ERR! stack at process._tickCallback (node.js:355:11)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd G:\Jonas\AppData\Roaming\npm\node_modules\player\node_modules\lame
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "player" "-g"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code ELIFECYCLE
npm ERR! speaker@0.2.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the speaker@0.2.1 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 their info via:
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! g:\Jonas\documents\node\nodealarmclock\npm-debug.log
If i try to intall newest speaker build
$ npm install speaker -g
-
> speaker@0.2.5 install G:\Jonas\AppData\Roaming\npm\node_modules\speaker
> node-gyp rebuild
G:\Jonas\AppData\Roaming\npm\node_modules\speaker>if not defined npm_config_node_gyp (node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (rebuild)
gyp ERR! configure error
gyp ERR! stack Error: spawn C:\Python27 ENOENT
gyp ERR! stack at exports._errnoException (util.js:746:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
gyp ERR! stack at child_process.js:1144:20
gyp ERR! stack at process._tickCallback (node.js:355:11)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd G:\Jonas\AppData\Roaming\npm\node_modules\speaker
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "speaker" "-g"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code ELIFECYCLE
npm ERR! speaker@0.2.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the speaker@0.2.5 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 their info via:
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! g:\Jonas\documents\node\nodealarmclock\npm-debug.log
from player.
player module do not works well in Windows right now.
could you please check the latest version v0.4.1 and try again?
from player.
Related Issues (20)
- Publish new version on npm HOT 2
- Error with basic example, the file sounds but then fail HOT 6
- No support for Content-Type: audio/mp3 HOT 6
- Crackling sound HOT 2
- Playing stream without extension
- Playback stops when window loses focus (electron / atom-shell) HOT 1
- Warning output HOT 2
- install fails HOT 1
- When node version is 6.0.0 or later, fail to build. HOT 1
- Deprecated Carbon Component Manager For Hosting Audio Files HOT 2
- Cannot Install using "npm install player" HOT 2
- [Enhancement] Add .wav file support
- How can we implement crossfade?
- Player.setVolume() metod
- HTTPS not supported?
- Illegal instruction: 4 HOT 2
- Finding a way to send sound to bluetooth headset
- 卡在require('player')这一行
- on('playend') not working
- npm安装依赖失败报错怎么解决? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from player.