Uncaught Error Error: spawn afplay ENOENT
- Dominant language
- JavaScript
- Stars
- 162
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Description
Every single time i try to play my .mp3 song file i downloaded. i get this error
```
Uncaught Error Error: spawn afplay ENOENT
at __node_internal_captureLargerStackTrace (internal/errors:490:5)
at __node_internal_errnoException (internal/errors:620:12)
at ChildProcess._handle.onexit (internal/child_process:285:19)
at onErrorNT (internal/child_process:483:16)
at processTicksAndRejections (internal/process/task_queues:82:21)
--- TickObject ---
at init (internal/inspector_async_hook:25:19)
at emitInitNative (internal/async_hooks:202:43)
at emitInitScript (internal/async_hooks:506:3)
at nextTick (internal/process/task_queues:132:5)
at ChildProcess.spawn (internal/child_process:403:13)
at spawn (child_process:757:9)
at exports.sound (c:\Users\saico\OneDrive\Documents\SongManager\node_modules\play\lib\play.js:57:17)
at PlaySong (c:\Users\saico\OneDrive\Documents\SongManager\songmanager.js:8:12)
at (c:\Users\saico\OneDrive\Documents\SongManager\songmanager.js:18:6)
at Module._compile (internal/modules/cjs/loader:1275:14)
at Module._extensions..js (internal/modules/cjs/loader:1329:10)
at Module.load (internal/modules/cjs/loader:1133:32)
at Module._load (internal/modules/cjs/loader:972:12)
at executeUserEntryPoint (internal/modules/run_main:83:12)
at (internal/main/run_main_module:23:47)
```
# Screenshot

Contributor guide
No contributing guide indexed for this repository
Research direction
Start in node_modules/play/lib/play.js at the spawn call shown in the stack trace, then review songmanager.js to understand how PlaySong invokes it. Reproduce the .mp3 playback failure on the reported Windows environment and compare the selected afplay command with the available platform tools. Done means the package can play the file without an ENOENT error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100