Failed to install mediasoup@3 Windows 10

Great, good to know that.

1 Like

Hi, i am getting errors like this. I have installed all the dependencies and added the certificates required in the config file. Can u help me.

PS D:\sfu\sfu_mediasop_demo\mediasoup-demo-3\server> npm install
npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/versatica/mediasoup.git
npm ERR! Connection reset by 20.207.73.82 port 22
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\1031866\AppData\Local\npm-cache_logs\2023-03-14T05_19_51_877Z-debug-0.log

Seems to be git related issue on your system as the error are saying that. Haven’t faced it myself but there are many resources online to help you like this:

Hi, I am getting errors like this, I installed all the dependencies and all the certificates required. Then I tried to run ./build.sh file in the docker folder. I have done the needed changes in config,js also.
npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/root/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm ERR! > mediasoup@3.11.13 postinstall
npm ERR! > node npm-scripts.js postinstall
npm ERR!
npm ERR! npm-scripts.js [INFO] running task “postinstall”
npm ERR! npm-scripts.js [INFO] buildWorker()
npm ERR! npm-scripts.js [INFO] executeCmd(): make -C worker
npm ERR! make: Entering directory ‘/root/.npm/_cacache/tmp/git-cloneL99sJ3/worker’
npm ERR! # Updated pip and setuptools are needed for meson.
npm ERR! # --system is not present everywhere and is only needed as workaround for
npm ERR! # Debian-specific issue (copied from Without --system build fails by sac · Pull Request #33 · gluster/gstatus · GitHub),
npm ERR! # fallback to command without --system if the first one fails.
npm ERR! /usr/bin/python3 -m pip install --system --target=/root/.npm/_cacache/tmp/git-cloneL99sJ3/worker/out/pip pip setuptools ||
npm ERR! /usr/bin/python3 -m pip install --target=/root/.npm/_cacache/tmp/git-cloneL99sJ3/worker/out/pip pip setuptools ||
npm ERR! echo “Installation failed, likely because PIP is unavailable, if you are on Debian/Ubuntu or derivative please install the python3-pip package”
npm ERR! Collecting pip
npm ERR! Downloading
npm ERR! Collecting setuptools
npm ERR! Downloading
npm ERR! Installing collected packages: pip, setuptools
npm ERR! Successfully installed pip-23.0.1 setuptools-67.6.0
npm ERR! # Install meson and ninja using pip into custom location, so we don’t
npm ERR! # depend on system-wide installation.
npm ERR! /usr/bin/python3 -m pip install --upgrade --target=/root/.npm/_cacache/tmp/git-cloneL99sJ3/worker/out/pip meson==0.61.5 ninja==1.10.2.4
npm ERR! Could not fetch URL There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=, port=443): Max retries exceeded with url: /simple/meson/ (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)’))) - skipping
npm ERR! Could not fetch URL There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=, port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)’))) - skipping
npm ERR! make: Leaving directory ‘/root/.npm/_cacache/tmp/git-cloneL99sJ3/worker’
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)’))’: /simple/meson/
npm ERR! WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)’))’: /simple/meson/
npm ERR! WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)’))’: /simple/meson/
npm ERR! WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)’))’: /simple/meson/
npm ERR! WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)’))’: /simple/meson/
npm ERR! ERROR: Could not find a version that satisfies the requirement meson==0.61.5 (from versions: none)
npm ERR! ERROR: No matching distribution found for meson==0.61.5
npm ERR! make: *** [Makefile:101: meson-ninja] Error 1
npm ERR! npm-scripts.js [ERROR] executeCmd() failed, exiting: Error: Command failed: make -C worker
npm ERR! npm ERR! code 1
npm ERR! npm ERR! path /root/.npm/_cacache/tmp/git-cloneL99sJ3
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c – node npm-scripts.js postinstall
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! /root/.npm/_logs/2023-03-15T06_53_50_153Z-debug-0.log

Make sure you have followed the SSL related requirements in mentioned in the doscs: