mediasoup install error

openssl| Run-time dependency threads found: YES
openssl| Program as found: YES 11.0.3 (/usr/bin/as)
openssl| Message: OpenSSL is configured with ASM support
openssl| Build targets in project: 3
openssl| Subproject openssl finished.

Downloading nlohmann_json source from https://github.com/nlohmann/json/releases/download/v3.9.1/include.zip
Traceback (most recent call last):
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/mesonmain.py”, line 146, in run
return options.run_func(options)
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/msetup.py”, line 294, in run
app.generate()
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/msetup.py”, line 185, in generate
self._generate(env)
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/msetup.py”, line 229, in _generate
intr.run()
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreter/interpreter.py”, line 2551, in run
super().run()
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/interpreterbase.py”, line 148, in run
self.evaluate_codeblock(self.ast, start=1)
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/interpreterbase.py”, line 173, in evaluate_codeblock
raise e
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/interpreterbase.py”, line 166, in evaluate_codeblock
self.evaluate_statement(cur)
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/interpreterbase.py”, line 181, in evaluate_statement
self.assignment(cur)
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/interpreterbase.py”, line 566, in assignment
value = self.evaluate_statement(node.value)
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/interpreterbase.py”, line 179, in evaluate_statement
return self.function_call(cur)
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/interpreterbase.py”, line 454, in function_call
res = func(node, func_args, kwargs)
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/decorators.py”, line 768, in wrapped
return f(*wrapped_args, **wrapped_kwargs)
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/decorators.py”, line 115, in wrapped
return f(*wrapped_args, **wrapped_kwargs)
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/decorators.py”, line 276, in wrapper
return f(*nargs, **wrapped_kwargs)
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreter/interpreter.py”, line 795, in func_subproject
return self.do_subproject(args[0], ‘meson’, kwargs)
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreter/interpreter.py”, line 836, in do_subproject
subdir = r.resolve(subp_name, method)
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/wrap/wrap.py”, line 334, in resolve
self.get_file()
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/wrap/wrap.py”, line 398, in get_file
path = self.get_file_internal(‘source’)
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/wrap/wrap.py”, line 560, in get_file_internal
self.download(what, cache_path)
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/wrap/wrap.py”, line 535, in download
dhash, tmpfile = self.get_data(srcurl)
File “/Users/bozhang/hwl/mediasoup-demo/server/node_modules/mediasoup/worker/out/pip/mesonbuild/wrap/wrap.py”, line 486, in get_data
resp = urllib.request.urlopen(req, timeout=REQ_TIMEOUT)
File “/usr/local/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py”, line 214, in urlopen
return opener.open(url, data, timeout)
File “/usr/local/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py”, line 517, in open
response = self._open(req, data)
File “/usr/local/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py”, line 534, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File “/usr/local/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py”, line 494, in _call_chain
result = func(*args)
File “/usr/local/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py”, line 1389, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File “/usr/local/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py”, line 1350, in do_open
r = h.getresponse()
File “/usr/local/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py”, line 1377, in getresponse
response.begin()
File “/usr/local/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py”, line 320, in begin
version, status, reason = self._read_status()
File “/usr/local/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py”, line 289, in _read_status
raise RemoteDisconnected(“Remote end closed connection without”
http.client.RemoteDisconnected: Remote end closed connection without response

meson.build:153:0: ERROR: Unhandled python exception

This is a Meson bug and should be reported!

make: *** [setup] Error 2
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mediasoup@3.9.4 postinstall: node npm-scripts.js postinstall
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mediasoup@3.9.4 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Delete node_modules and try again. Looks like there was a network issue during installation.

already repeat it too many times。。。 in python 3.9.9 and macos 10.15

Something is odd still if it tries to download https://github.com/nlohmann/json/releases/download/v3.9.1/include.zip and says “Remote end closed connection without response”.

Not sure how to help, but you can try to download the file directly and see if you get any errors that way.

thanks! that ok, network problem