# Issue creating worker with node

**URL:** <https://mediasoup.discourse.group/t/issue-creating-worker-with-node/3999>\
**Category:** mediasoup libraries\
**Created:** [March 6, 2022, 7:57am UTC](https://mediasoup.discourse.group/t/issue-creating-worker-with-node/3999 "2022-03-06T07:57:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RonaldColyar](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ronaldcolyar/32/1495_2.png) [@RonaldColyar](https://mediasoup.discourse.group/u/RonaldColyar)\
**Post date:** [March 6, 2022, 7:57am UTC](https://mediasoup.discourse.group/t/issue-creating-worker-with-node/3999/1 "2022-03-06T07:57:55Z")

</div>

I have an issue starting a worker with my new project: [GitHub - Collaborative-IoT/Lancelot: Voice server for Collaborative-IoT audio chat.](https://github.com/Collaborative-IoT/Lancelot)

The issue occurs:[Lancelot/src/utils/startMediasoup.ts at master · Collaborative-IoT/Lancelot · GitHub](https://github.com/Collaborative-IoT/Lancelot/blob/master/src/utils/startMediasoup.ts)

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?

---

<div class="post-metadata">

**Author:** ![snnz](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/snnz/32/693_2.png) [@snnz](https://mediasoup.discourse.group/u/snnz)\
**Post date:** [March 6, 2022, 9:43am UTC](https://mediasoup.discourse.group/t/issue-creating-worker-with-node/3999/2 "2022-03-06T09:43:57Z")

</div>

It seems you have the global Node.js `make` package installed, which collides with MinGW/GNU `make`. Try `npm uninstall -g make`

---

<div class="post-metadata">

**Author:** ![RonaldColyar](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ronaldcolyar/32/1495_2.png) [@RonaldColyar](https://mediasoup.discourse.group/u/RonaldColyar)\
**Post date:** [March 6, 2022, 11:40pm UTC](https://mediasoup.discourse.group/t/issue-creating-worker-with-node/3999/4 "2022-03-06T23:40:28Z")

</div>

Thanks for the insight, after removing the node.js make globally I have gotten the following from repeating step 3 of the section “things tried”.

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: Entering directory ‘C:/Users/imkxr/Repos/Collaborative/Lancelot/node\_modules/mediasoup/worker’  
process\_begin: CreateProcess(NULL, dirname C:/Users/imkxr/Repos/Collaborative/Lancelot/node\_modules/mediasoup/worker/Makefile, …) failed.  
Makefile:7: pipe: No error  
process\_begin: CreateProcess(NULL, pwd, …) failed.  
Makefile:37: pipe: No error  
process\_begin: CreateProcess(NULL, pwd, …) failed.  
Makefile:56: pipe: No error  
The system cannot find the path specified.  
process\_begin: CreateProcess(NULL, pwd, …) failed.  
Makefile:62: pipe: Bad file descriptor  
The system cannot find the path specified.  
process\_begin: CreateProcess(NULL, pwd, …) failed.  
Makefile:62: pipe: Bad file descriptor  
The system cannot find the path specified.  
process\_begin: CreateProcess(NULL, pwd, …) failed.  
Makefile:65: pipe: Bad file descriptor  
‘[’ is not recognized as an internal or external command,  
operable program or batch file.  
Updated pip and setuptools are needed for meson  
process\_begin: CreateProcess(NULL, pwd, …) failed.  
Makefile:28: pipe: Bad file descriptor  
process\_begin: CreateProcess(NULL, # Updated pip and setuptools are needed for meson, …) failed.  
make (e=2): The system cannot find the file specified.  
make: \*\*\* [Makefile:57: meson-ninja] Error 2  
make: Leaving directory ‘C:/Users/imkxr/Repos/Collaborative/Lancelot/node\_modules/mediasoup/worker’  
npm ERR! code 1  
npm ERR! path C:\Users\imkxr\Repos\Collaborative\Lancelot\node\_modules\mediasoup  
npm ERR! command failed  
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node npm-scripts.js postinstall

npm ERR! A complete log of this run can be found in:  
npm ERR! C:\Users\imkxr\AppData\Local\npm-cache\_logs\2022-03-06T23\_38\_07\_227Z-debug.log

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/nazar-pc/32/369_2.png) [@nazar-pc](https://mediasoup.discourse.group/u/nazar-pc)\
**Post date:** [March 6, 2022, 11:53pm UTC](https://mediasoup.discourse.group/t/issue-creating-worker-with-node/3999/5 "2022-03-06T23:53:35Z")

</div>

Did you read and follow all instructions here top to bottom?: [mediasoup :: Installation](https://mediasoup.org/documentation/v3/mediasoup/installation/)

It seems that you don’t have correct Make version installed.

---

<div class="post-metadata">

**Author:** ![RonaldColyar](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ronaldcolyar/32/1495_2.png) [@RonaldColyar](https://mediasoup.discourse.group/u/RonaldColyar)\
**Post date:** [March 7, 2022, 1:06am UTC](https://mediasoup.discourse.group/t/issue-creating-worker-with-node/3999/6 "2022-03-07T01:06:14Z")

</div>

Thanks for your help! Instead of running it locally on my windows machine I just placed it in a docker container with alpine which has build essentials.

---

<div class="post-metadata">

**Author:** ![aloisogomes](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/aloisogomes/32/1897_2.png) [@aloisogomes](https://mediasoup.discourse.group/u/aloisogomes)\
**Post date:** [January 7, 2023, 12:09pm UTC](https://mediasoup.discourse.group/t/issue-creating-worker-with-node/3999/7 "2023-01-07T12:09:45Z")

</div>

If someone wants run locally, without docker, following @nazar-pc suggest, run: npm uninstall -g make, remove node\_modules and run again installation
