Problem in installation of mediasoup server library on node.js


I am trying to install media soup on my mac machine, but the installation goes forever. This only happens with the current version. If I try to install a version like 3.5.3, it installs successfully. I have tried this with both npm and yarn. I have all the packages up to date, x-code installed to the latest, and python3 installed to the latest version.

Machine/software details:
Laptop: Mac
Processor: i5
OS version: macOS BigSur

Node version: v14.17.0
npm version: 7.14.0
yarn version: v1.22.5

Kindly please help.

Enter into node_modules/mediasoup/worker/, run make and paste the output here.

But how, media soup isn’t installing.

I’m trying to install media soup on windows machine. But get some errors:
npm ERR! code 1
npm ERR! path D:\Công ty cổ phần thanh toán Hưng Hà\HHP\wevRTC\Media soup project\example1\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! npm-scripts.js [INFO] running task “postinstall”
npm ERR! npm-scripts.js [INFO] executing command: node npm-scripts.js worker:build
npm ERR! npm-scripts.js [INFO] running task “worker:build”
npm ERR! npm-scripts.js [INFO] executing command: make -C worker
npm ERR! make: *** worker: No such file or directory. Stop.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lehuu\AppData\Local\npm-cache_logs\2022-08-06T01_51_40_381Z-debug-0.log

I read document and did requirement, this information of my device:

  • Python 3.10.6
  • GNU Make 3.81
  • node version 16.16

This doesn’t seem to be a valid path. It has spaces etc, this can lead to issues, try correcting it and then install mediaoup again after that

1 Like