mediasoup install error ! help!

I install mediasoup with command “cnpm i install mediasoup ig” and “npm install mediasoup”,all lose,the errors like this ,please help me,thanks!

Host machine cpu family: x86_64
Host machine cpu: x86_64
Downloading openssl source from https://www.openssl.org/source/openssl-1.1.1l.tar.gz
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>
A fallback URL could be specified using source_fallback_url key in the wrap file

meson.build:147:0: ERROR: could not get https://www.openssl.org/source/openssl-1.1.1l.tar.gz is the internet available?

A full log can be found at /usr/lib/node_modules/mediasoup/worker/out/Release/build/meson-logs/meson-log.txt
Makefile:74: recipe for target ‘setup’ failed
make: *** [setup] Error 1
make: Leaving directory ‘/usr/lib/node_modules/mediasoup/worker’
npm ERR! code 1
npm ERR! path /usr/lib/node_modules/mediasoup
npm ERR! command failed
npm ERR! command sh -c node npm-scripts.js postinstall

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-01-28T11_44_25_731Z-debug.log

Looks like your certificates for Let’s Encrypt are out of date.

Depending on your OS there must be a solution if you search for one: let's encrypt urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)> at DuckDuckGo

You’ll get the same issue with many apps in fact.

Thanks a lot! :+1:

Just had the same issue on Mac OS X Monterey (12.5) with Python installed via the official installer (instead of pyenv or brew). The solution was to run the following from the terminal:

/Applications/Python\ 3.10/Install\ Certificates.command