Mediasoup unable to install in Windows

Hi I am unable to install mediasoup library in windows 10. I am getting unsupported platform error.
Please tell what shall I do in order to install mediasoup in windows?

You don’t even tell whether your host satisfies installation requirements. Hard to help, sorry.

Besides the obvious things like downloading the correct file, checking system requirements, here’s what finally worked for me after 2 days worth of trying, and looking at github issue list

  1. Install Python 2.7.15 to C:\Users\[your-folder]\.windows-build-tools\python27 (I don’t remember where I got this folder from, its somewhere in the install instructions)
  2. Set correct path to Python in npm config, windows environment
  3. Remove paths to Python 3 from Windows Environment, if it is installed
  4. Set correct Windows PATH for Visual Studio 2017
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE
  5. Define GYP_MSVS_VERSION = 2017 in Windows environment

Hit npm install and start praying…

4 Likes

I ran into similar issues, make sure the path is correct for Visual Studio and Python. Also I had to run powershell as administrator to install the module. It would not install under regular terminal. The platform error that you are getting is more like a warning and optional step if I recollect. 43 warning 0 errors…So I think I am good to go…:).
Happy coding

If you’re using VS 2019:

1. > npm i --ignore-scripts
2. > cd node_modules/mediasoup
3. > python ./worker/scripts/configure.py --format=msvs -R mediasoup-worker
4. > cd worker

Then open ‘mediasoup-worker.sln’ with VS to complie。

5 Likes

/worker/scripts/configure.py
This file is no longer available in the latest version