Not sure this is an issue for everyone but I found out the beep was not working and the code is not throwing the exception in the finder.js. After checking it and forcing the exception by adding if (err) throw err I found the following...
Error: Couldn't find a suitable audio player
at Play.play (c:\Temp\delivery-finder\node_modules\play-sound\index.js:34:19)
at Object.<anonymous> (c:\Temp\delivery-finder\sound.js:4:8)
at Module._compile (internal/modules/cjs/loader.js:1185:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10)
at Module.load (internal/modules/cjs/loader.js:1034:32)
at Function.Module._load (internal/modules/cjs/loader.js:923:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
var fs = require('fs')
, findExec = require('find-exec')
, spawn = require('child_process').spawn
, players = [
'mplayer',
'afplay',
'mpg123',
'mpg321',
'play',
'omxplayer',
'aplay',
'cmdmp3',
'powershell'
]
function beep () {
player.play('C:\\temp\\delivery-finder\\beep.mp3', function (err) {
})
}
function beep () {
player.play('./beep.mp3', function (err) {
})
}
After that it should work where it will launch the default windows player application and play the sound
Alternatively, another easy option to the changes above mentioned / default windows player is to use the cmdmp3 (https://github.com/jimlawless/cmdmp3) and have installed on the same folder as your finder.js