Unhandled 'error' event
- Dominant language
- JavaScript
- Stars
- 162
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Description
can you tell me what im doing wrong?
> var player = require('play');
> player.sound('./noti.wav')
it says:
> playing=>./noti.wav
> events.js:160
> throw er; // Unhandled 'error' event
> ^
> Error: spawn afplay ENOENT
> at exports._errnoException (util.js:1020:11)
> at Process.ChildProcess._handle.onexit (internal/child_process.js:197:32)
> at onErrorNT (internal/child_process.js:376:16)
> at _combinedTickCallback (internal/process/next_tick.js:80:11)
> at process._tickCallback (internal/process/next_tick.js:104:9)
or is it a bug?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by examining the play module's sound entry point and how it launches afplay, using the reported spawn afplay ENOENT trace as the initial clue. Determine whether the missing executable or the unhandled error event is the project behavior to address; done should include a reproducible diagnosis and a confirmed expected outcome.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100