/ home / Documentation / v3 / mediasoup / Installation

mediasoup v3 Installation

Install the mediasoup Node.js module via NPM within your Node.js application:

$ npm install mediasoup@3 --save


In order to build the mediasoup C/C++ components the following packages and libraries must be available in the target host:

  • In Debian and Ubuntu install the build-essential DEB package. It includes both make and gcc/g++.
  • In YUM based Linux (Red Hat, CentOS) use yum groupinstall "Development Tools".

If there is not python command pointing to Python 2 or 3 executable, set the PYTHON environment variable during mediasoup installation:

$ PYTHON=python3 npm install mediasoup@3 --save


Within your Node.js application:

const mediasoup = require("mediasoup");