I have an issue starting a worker with my new project: GitHub - Collaborative-IoT/Lancelot: Voice server for Collaborative-IoT audio chat.
The issue occurs:Lancelot/startMediasoup.ts at master · Collaborative-IoT/Lancelot · GitHub
Here is the issue output: `
Error: spawn C:\Users\imkxr\Repos\Collaborative\Lancelot\node_modules\mediasoup\worker\out\Release\mediasoup-worker ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -4058,
code: ‘ENOENT’,
syscall: ‘spawn C:\Users\imkxr\Repos\Collaborative\Lancelot\node_modules\mediasoup\worker\out\Release\mediasoup-worker’,
path: ‘C:\Users\imkxr\Repos\Collaborative\Lancelot\node_modules\mediasoup\worker\out\Release\mediasoup-worker’,
spawnargs: [
‘–logLevel=debug’,
‘–logTag=info’,
‘–logTag=ice’,
‘–logTag=dtls’,
‘–logTag=rtp’,
‘–logTag=srtp’,
‘–logTag=rtcp’,
‘–rtcMinPort=40000’,
‘–rtcMaxPort=49999’
]
}
node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);
^
Error: spawn C:\Users\imkxr\Repos\Collaborative\Lancelot\node_modules\mediasoup\worker\out\Release\mediasoup-worker ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -4058,
code: ‘ENOENT’,
syscall: ‘spawn C:\Users\imkxr\Repos\Collaborative\Lancelot\node_modules\mediasoup\worker\out\Release\mediasoup-worker’,
path: ‘C:\Users\imkxr\Repos\Collaborative\Lancelot\node_modules\mediasoup\worker\out\Release\mediasoup-worker’,
spawnargs: [
‘–logLevel=debug’,
‘–logTag=info’,
‘–logTag=ice’,
‘–logTag=dtls’,
‘–logTag=rtp’,
‘–logTag=srtp’,
‘–logTag=rtcp’,
‘–rtcMinPort=40000’,
‘–rtcMaxPort=49999’
]
`
Things tried?
1.I made sure I have the requirements listed in the documentation
2.Deleted/Undeleted the node_modules folder of my project to reinstall the lib.
3.Navigated to C:\Users\imkxr\Repos\Collaborative\Lancelot\node_modules\mediasoup\node_modules and ran npm install
.
The output of 3: `
mediasoup@3.9.8 postinstall
node npm-scripts.js postinstall
npm-scripts.js [INFO] running task “postinstall”
npm-scripts.js [INFO] executing command: node npm-scripts.js worker:build
npm-scripts.js [INFO] running task “worker:build”
npm-scripts.js [INFO] executing command: make -C worker
make × ERR Missing Makefile / Bakefile
make i info Run “make init” to generate a Makefile.
npm-scripts.js [INFO] executing command: make clean-build -C worker
make × ERR Missing Makefile / Bakefile
make i info Run “make init” to generate a Makefile.
npm-scripts.js [INFO] executing command: make clean-subprojects -C worker
make × ERR Missing Makefile / Bakefile
make i info Run “make init” to generate a Makefile.
npm-scripts.js [INFO] executing command: make clean-pip -C worker
make × ERR Missing Makefile / Bakefile
make i info Run “make init” to generate a Makefile.
up to date, audited 522 packages in 2s
80 packages are looking for funding
run npm fund
for details
5 moderate severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run npm audit
for details.`
Questions and Additional
Is there anything else to check for worker failure?