# error occurs when npm install mediasoup@3

**URL:** <https://mediasoup.discourse.group/t/error-occurs-when-npm-install-mediasoup-3/3466>\
**Category:** Deployment & Scalability\
**Created:** [October 21, 2021, 9:53am UTC](https://mediasoup.discourse.group/t/error-occurs-when-npm-install-mediasoup-3/3466 "2021-10-21T09:53:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ouxingning](https://avatars.discourse-cdn.com/v4/letter/o/dfb087/32.png) [@ouxingning](https://mediasoup.discourse.group/u/ouxingning)\
**Post date:** [October 21, 2021, 9:53am UTC](https://mediasoup.discourse.group/t/error-occurs-when-npm-install-mediasoup-3/3466/1 "2021-10-21T09:53:00Z")

</div>

Hi there, when I try to install mediasoup in my project in ubunntu docker container, some errors occurred and I don’t know the reason and how to fix it, can some one give me a hand? The following is the error log.

```auto
root@1d14a042996d:/usr/src/example1# cat /root/.npm/_logs/2021-10-21T09_29_23_737Z-debug.log
0 verbose cli ['/usr/bin/node', '/usr/bin/npm', 'install', 'mediasoup']
1 info using npm@8.1.0
2 info using node@v16.12.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/usr/src/example1/.npmrc Completed in 1ms
10 timing config:load:project Completed in 2ms
11 timing config:load:file:/root/.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:/usr/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 7ms
19 timing npm:load:configload Completed in 8ms
20 timing npm:load:setTitle Completed in 0ms
21 timing npm:load:setupLog Completed in 1ms
22 timing config:load:flatten Completed in 2ms
23 timing npm:load:cleanupLog Completed in 2ms
24 timing npm:load:configScope Completed in 0ms
25 timing npm:load:projectScope Completed in 1ms
26 timing npm:load Completed in 15ms
27 timing arborist:ctor Completed in 0ms
28 timing idealTree:init Completed in 68ms
29 timing idealTree:userRequests Completed in 2ms
30 silly idealTree buildDeps
31 silly fetch manifest mediasoup@*
32 timing arborist:ctor Completed in 0ms
33 http fetch GET 200 https://registry.npmjs.org/mediasoup 3973ms (cache miss)
34 silly placeDep ROOT mediasoup@3.9.0 OK for: example1@1.0.0 want: *
35 silly fetch manifest awaitqueue@^2.3.3
36 silly fetch manifest debug@^4.3.2
37 silly fetch manifest h264-profile-level-id@^1.0.1
38 silly fetch manifest random-number@^0.0.9
39 silly fetch manifest supports-color@^9.0.2
40 silly fetch manifest uuid@^8.3.2
41 http fetch GET 200 https://registry.npmjs.org/debug 20ms (cache hit)
42 http fetch GET 200 https://registry.npmjs.org/random-number 781ms (cache miss)
43 http fetch GET 200 https://registry.npmjs.org/h264-profile-level-id 973ms (cache miss)
44 http fetch GET 200 https://registry.npmjs.org/awaitqueue 1341ms (cache miss)
45 http fetch GET 200 https://registry.npmjs.org/supports-color 1549ms (cache miss)
46 http fetch GET 200 https://registry.npmjs.org/uuid 2761ms (cache miss)
47 timing idealTree:#root Completed in 6746ms
48 silly placeDep ROOT awaitqueue@2.3.3 OK for: mediasoup@3.9.0 want: ^2.3.3
49 silly placeDep node_modules/mediasoup debug@4.3.2 OK for: mediasoup@3.9.0 want: ^4.3.2
50 silly placeDep ROOT h264-profile-level-id@1.0.1 OK for: mediasoup@3.9.0 want: ^1.0.1
51 silly placeDep ROOT random-number@0.0.9 OK for: mediasoup@3.9.0 want: ^0.0.9
52 silly placeDep ROOT supports-color@9.0.2 OK for: mediasoup@3.9.0 want: ^9.0.2
53 silly placeDep ROOT uuid@8.3.2 OK for: mediasoup@3.9.0 want: ^8.3.2
54 silly fetch manifest ms@2.1.2
55 silly fetch manifest debug@^4.1.1
56 silly fetch manifest has-flag@^5.0.0
57 http fetch GET 200 https://registry.npmjs.org/ms 6ms (cache hit)
58 http fetch GET 200 https://registry.npmjs.org/has-flag 269ms (cache miss)
59 timing idealTree:node_modules/mediasoup Completed in 280ms
60 timing idealTree:node_modules/awaitqueue Completed in 0ms
61 silly placeDep node_modules/h264-profile-level-id debug@4.3.2 OK for: h264-profile-level-id@1.0.1 want: ^4.1.1
62 timing idealTree:node_modules/h264-profile-level-id Completed in 2ms
63 timing idealTree:node_modules/random-number Completed in 0ms
64 silly placeDep ROOT has-flag@5.0.1 OK for: supports-color@9.0.2 want: ^5.0.0
65 timing idealTree:node_modules/supports-color Completed in 1ms
66 timing idealTree:node_modules/has-flag Completed in 0ms
67 timing idealTree:node_modules/uuid Completed in 0ms
68 silly placeDep node_modules/h264-profile-level-id ms@2.1.2 OK for: debug@4.3.2 want: 2.1.2
69 timing idealTree:node_modules/h264-profile-level-id/node_modules/debug Completed in 1ms
70 timing idealTree:node_modules/h264-profile-level-id/node_modules/ms Completed in 0ms
71 silly placeDep node_modules/mediasoup ms@2.1.2 OK for: debug@4.3.2 want: 2.1.2
72 timing idealTree:node_modules/mediasoup/node_modules/debug Completed in 2ms
73 timing idealTree:node_modules/mediasoup/node_modules/ms Completed in 0ms
74 timing idealTree:buildDeps Completed in 7033ms
75 timing idealTree:fixDepFlags Completed in 2ms
76 timing idealTree Completed in 7108ms
77 timing reify:loadTrees Completed in 7109ms
78 timing reify:diffTrees Completed in 6ms
79 silly reify moves {}
80 timing reify:retireShallow Completed in 0ms
81 timing reify:createSparse Completed in 57ms
82 timing reify:loadBundles Completed in 0ms
83 silly audit bulk request {
83 silly audit '@socket.io/component-emitter': ['3.0.0'],
83 silly audit '@types/component-emitter': ['1.2.11'],
83 silly audit '@types/cookie': ['0.4.1'],
83 silly audit '@types/cors': ['2.8.12'],
83 silly audit '@types/node': ['16.11.1'],
83 silly audit accepts: ['1.3.7'],
83 silly audit 'array-flatten': ['1.1.1'],
83 silly audit backo2: ['1.0.2'],
83 silly audit 'base64-arraybuffer': ['1.0.1'],
83 silly audit base64id: ['2.0.0'],
83 silly audit 'body-parser': ['1.19.0'],
83 silly audit bytes: ['3.1.0'],
83 silly audit 'component-emitter': ['1.3.0'],
83 silly audit 'content-disposition': ['0.5.3'],
83 silly audit 'content-type': ['1.0.4'],
83 silly audit cookie: ['0.4.0', '0.4.1'],
83 silly audit 'cookie-signature': ['1.0.6'],
83 silly audit cors: ['2.8.5'],
83 silly audit debug: ['2.6.9', '4.3.2'],
83 silly audit depd: ['1.1.2'],
83 silly audit destroy: ['1.0.4'],
83 silly audit 'ee-first': ['1.1.1'],
83 silly audit encodeurl: ['1.0.2'],
83 silly audit 'engine.io': ['6.0.0'],
83 silly audit 'engine.io-client': ['6.0.2'],
83 silly audit ms: ['2.1.2', '2.0.0', '2.1.1'],
83 silly audit 'engine.io-parser': ['5.0.1'],
83 silly audit 'escape-html': ['1.0.3'],
83 silly audit etag: ['1.8.1'],
83 silly audit express: ['4.17.1'],
83 silly audit finalhandler: ['1.1.2'],
83 silly audit forwarded: ['0.2.0'],
83 silly audit fresh: ['0.5.2'],
83 silly audit 'has-cors': ['1.1.0'],
83 silly audit 'http-errors': ['1.7.2'],
83 silly audit httpolyglot: ['0.1.2'],
83 silly audit 'iconv-lite': ['0.4.24'],
83 silly audit inherits: ['2.0.3'],
83 silly audit 'ipaddr.js': ['1.9.1'],
83 silly audit 'media-typer': ['0.3.0'],
83 silly audit 'merge-descriptors': ['1.0.1'],
83 silly audit methods: ['1.1.2'],
83 silly audit mime: ['1.6.0'],
83 silly audit 'mime-db': ['1.50.0'],
83 silly audit 'mime-types': ['2.1.33'],
83 silly audit negotiator: ['0.6.2'],
83 silly audit 'object-assign': ['4.1.1'],
83 silly audit 'on-finished': ['2.3.0'],
83 silly audit parseqs: ['0.0.6'],
83 silly audit parseuri: ['0.0.6'],
83 silly audit parseurl: ['1.3.3'],
83 silly audit 'path-to-regexp': ['0.1.7'],
83 silly audit 'proxy-addr': ['2.0.7'],
83 silly audit qs: ['6.7.0'],
83 silly audit 'range-parser': ['1.2.1'],
83 silly audit 'raw-body': ['2.4.0'],
83 silly audit 'safe-buffer': ['5.1.2'],
83 silly audit 'safer-buffer': ['2.1.2'],
83 silly audit send: ['0.17.1'],
83 silly audit 'serve-static': ['1.14.1'],
83 silly audit setprototypeof: ['1.1.1'],
83 silly audit 'socket.io': ['4.3.1'],
83 silly audit 'socket.io-adapter': ['2.3.2'],
83 silly audit 'socket.io-client': ['4.3.2'],
83 silly audit 'socket.io-parser': ['4.1.1', '4.0.4'],
83 silly audit statuses: ['1.5.0'],
83 silly audit toidentifier: ['1.0.0'],
83 silly audit 'type-is': ['1.6.18'],
83 silly audit unpipe: ['1.0.0'],
83 silly audit 'utils-merge': ['1.0.1'],
83 silly audit vary: ['1.1.2'],
83 silly audit ws: ['8.2.3'],
83 silly audit 'xmlhttprequest-ssl': ['2.0.0'],
83 silly audit yeast: ['0.1.2'],
83 silly audit mediasoup: ['3.9.0'],
83 silly audit awaitqueue: ['2.3.3'],
83 silly audit 'h264-profile-level-id': ['1.0.1'],
83 silly audit 'random-number': ['0.0.9'],
83 silly audit 'supports-color': ['9.0.2'],
83 silly audit uuid: ['8.3.2'],
83 silly audit 'has-flag': ['5.0.1']
83 silly audit }
84 silly tarball no local data for uuid@https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz. Extracting by manifest.
85 silly tarball no local data for has-flag@https://registry.npmjs.org/has-flag/-/has-flag-5.0.1.tgz. Extracting by manifest.
86 silly tarball no local data for supports-color@https://registry.npmjs.org/supports-color/-/supports-color-9.0.2.tgz. Extracting by manifest.
87 silly tarball no local data for mediasoup@https://registry.npmjs.org/mediasoup/-/mediasoup-3.9.0.tgz. Extracting by manifest.
88 silly tarball no local data for awaitqueue@https://registry.npmjs.org/awaitqueue/-/awaitqueue-2.3.3.tgz. Extracting by manifest.
89 silly tarball no local data for random-number@https://registry.npmjs.org/random-number/-/random-number-0.0.9.tgz. Extracting by manifest.
90 silly tarball no local data for h264-profile-level-id@https://registry.npmjs.org/h264-profile-level-id/-/h264-profile-level-id-1.0.1.tgz. Extracting by manifest.
91 timing reifyNode:node_modules/h264-profile-level-id/node_modules/ms Completed in 91ms
92 timing reifyNode:node_modules/mediasoup/node_modules/ms Completed in 92ms
93 timing reifyNode:node_modules/h264-profile-level-id/node_modules/debug Completed in 106ms
94 timing reifyNode:node_modules/mediasoup/node_modules/debug Completed in 106ms
95 http fetch GET 200 https://registry.npmjs.org/has-flag/-/has-flag-5.0.1.tgz 304ms (cache miss)
96 timing reifyNode:node_modules/has-flag Completed in 350ms
97 http fetch GET 200 https://registry.npmjs.org/supports-color/-/supports-color-9.0.2.tgz 499ms (cache miss)
98 timing reifyNode:node_modules/supports-color Completed in 523ms
99 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 554ms
100 timing auditReport:getReport Completed in 557ms
101 silly audit report {}
102 timing auditReport:init Completed in 0ms
103 timing reify:audit Completed in 558ms
104 http fetch GET 200 https://registry.npmjs.org/random-number/-/random-number-0.0.9.tgz 757ms (cache miss)
105 timing reifyNode:node_modules/random-number Completed in 796ms
106 http fetch GET 200 https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz 830ms (cache miss)
107 timing reifyNode:node_modules/uuid Completed in 849ms
108 http fetch GET 200 https://registry.npmjs.org/awaitqueue/-/awaitqueue-2.3.3.tgz 1020ms (cache miss)
109 timing reifyNode:node_modules/awaitqueue Completed in 1053ms
110 http fetch GET 200 https://registry.npmjs.org/h264-profile-level-id/-/h264-profile-level-id-1.0.1.tgz 1251ms (cache miss)
111 timing reifyNode:node_modules/h264-profile-level-id Completed in 1289ms
112 http fetch GET 200 https://registry.npmjs.org/mediasoup/-/mediasoup-3.9.0.tgz 4458ms (cache miss)
113 timing reifyNode:node_modules/mediasoup Completed in 4486ms
114 timing reify:unpack Completed in 4487ms
115 timing reify:unretire Completed in 0ms
116 timing build:queue Completed in 7ms
117 timing build:link:node_modules/uuid Completed in 9ms
118 timing build:link Completed in 9ms
119 info run mediasoup@3.9.0 postinstall node_modules/mediasoup node npm-scripts.js postinstall
120 info run mediasoup@3.9.0 postinstall { code: 1, signal: null }
121 timing reify:rollback:createSparse Completed in 5874ms
122 timing reify:rollback:retireShallow Completed in 0ms
123 timing command:install Completed in 193437ms
124 verbose stack Error: command failed
124 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
124 verbose stack at ChildProcess.emit (node:events:390:28)
124 verbose stack at maybeClose (node:internal/child_process:1064:16)
124 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
125 verbose pkgid mediasoup@3.9.0
126 verbose cwd /usr/src/example1
127 verbose Linux 5.10.47-linuxkit
128 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "mediasoup"
129 verbose node v16.12.0
130 verbose npm v8.1.0
131 error code 1
132 error path /usr/src/example1/node_modules/mediasoup
133 error command failed
134 error command sh -c node npm-scripts.js postinstall
135 error npm-scripts.js [INFO] running task "postinstall"
135 error npm-scripts.js [INFO] executing command: node npm-scripts.js worker:build
135 error npm-scripts.js [INFO] running task "worker:build"
135 error npm-scripts.js [INFO] executing command: make -C worker
135 error make: Entering directory '/usr/src/example1/node_modules/mediasoup/worker'
135 error # Updated pip and setuptools are needed for meson
135 error # `--system` is not present everywhere and is only needed as workaround for Debian-specific issue (copied from
135 error # https://github.com/gluster/gstatus/pull/33), fallback to command without `--system` if the first one fails.
135 error /usr/bin/python3 -m pip install --system --target=/usr/src/example1/node_modules/mediasoup/worker/out/pip pip setuptools || \
135 error /usr/bin/python3 -m pip install --target=/usr/src/example1/node_modules/mediasoup/worker/out/pip pip setuptools || \
135 error echo "Installation failed, likely because PIP is unavailable, if you are on Debian/Ubuntu or derivative please install the python3-pip package"
135 error Collecting pip
135 error Downloading pip-21.3-py3-none-any.whl (1.7 MB)
135 error Collecting setuptools
135 error Downloading setuptools-58.2.0-py3-none-any.whl (946 kB)
135 error Installing collected packages: pip, setuptools
135 error Successfully installed pip-21.3 setuptools-58.2.0
135 error # Install `meson` and `ninja` using `pip` into custom location, so we don't depend on system-wide installation.
135 error /usr/bin/python3 -m pip install --upgrade --target=/usr/src/example1/node_modules/mediasoup/worker/out/pip meson ninja
135 error Collecting meson
135 error Downloading meson-0.59.2.tar.gz (2.0 MB)
135 error Installing build dependencies: started
135 error Installing build dependencies: finished with status 'done'
135 error Getting requirements to build wheel: started
135 error Getting requirements to build wheel: finished with status 'done'
135 error Preparing wheel metadata (pyproject.toml): started
135 error Preparing wheel metadata (pyproject.toml): finished with status 'done'
135 error Collecting ninja
135 error Downloading ninja-1.10.2.2-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl (108 kB)
135 error Building wheels for collected packages: meson
135 error Building wheel for meson (pyproject.toml): started
135 error Building wheel for meson (pyproject.toml): finished with status 'done'
135 error Created wheel for meson: filename=meson-0.59.2-py3-none-any.whl size=808742 sha256=128b51b3df1d63990b64cdf91bec33c1b0f951fc27033aa1b5bbfffaa8694c4b
135 error Stored in directory: /root/.cache/pip/wheels/ad/8e/fd/7dcecb8020d219aceeda979347f553bb0e34ede3d8a5e4894f
135 error Successfully built meson
135 error Installing collected packages: ninja, meson
135 error Successfully installed meson-0.59.2 ninja-1.10.2.2
135 error /usr/src/example1/node_modules/mediasoup/worker/out/pip/bin/meson setup \
135 error --buildtype release \
135 error -Db_ndebug=true \
135 error -Db_pie=true \
135 error -Db_staticpic=true \
135 error --reconfigure \
135 error "" \
135 error /usr/src/example1/node_modules/mediasoup/worker/out/Release || \
135 error /usr/src/example1/node_modules/mediasoup/worker/out/pip/bin/meson setup \
135 error --buildtype release \
135 error -Db_ndebug=true \
135 error -Db_pie=true \
135 error -Db_staticpic=true \
135 error "" \
135 error /usr/src/example1/node_modules/mediasoup/worker/out/Release
135 error The Meson build system
135 error Version: 0.59.2
135 error Source dir: /usr/src/example1/node_modules/mediasoup/worker
135 error Build dir: /usr/src/example1/node_modules/mediasoup/worker/out/Release
135 error Build type: native build
135 error Project name: mediasoup-worker
135 error Project version: undefined
135 error C compiler for the host machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0")
135 error C linker for the host machine: cc ld.bfd 2.34
135 error C++ compiler for the host machine: c++ (gcc 9.3.0 "c++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0")
135 error C++ linker for the host machine: c++ ld.bfd 2.34
135 error Host machine cpu family: x86_64
135 error Host machine cpu: x86_64
135 error Downloading openssl source from https://www.openssl.org/source/openssl-1.1.1l.tar.gz
135 error Download size: 9834044
135 error Downloading: ..........
135 error Downloading openssl patch from https://wrapdb.mesonbuild.com/v2/openssl_1.1.1l-2/get_patch
135 error make: Leaving directory '/usr/src/example1/node_modules/mediasoup/worker'
136 error WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
136 error Directory does not contain a valid build tree:
136 error /usr/src/example1/node_modules/mediasoup/worker/out/Release
136 error Traceback (most recent call last):
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/mesonmain.py", line 228, in run
136 error return options.run_func(options)
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/msetup.py", line 281, in run
136 error app.generate()
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/msetup.py", line 184, in generate
136 error self._generate(env)
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/msetup.py", line 223, in _generate
136 error intr.run()
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreter/interpreter.py", line 2476, in run
136 error super().run()
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/interpreterbase.py", line 132, in run
136 error self.evaluate_codeblock(self.ast, start=1)
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/interpreterbase.py", line 157, in evaluate_codeblock
136 error raise e
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/interpreterbase.py", line 150, in evaluate_codeblock
136 error self.evaluate_statement(cur)
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/interpreterbase.py", line 165, in evaluate_statement
136 error self.assignment(cur)
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/interpreterbase.py", line 912, in assignment
136 error value = self.evaluate_statement(node.value)
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/interpreterbase.py", line 163, in evaluate_statement
136 error return self.function_call(cur)
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/interpreterbase.py", line 554, in function_call
136 error res = func(node, func_args, kwargs)
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/decorators.py", line 643, in wrapped
136 error return f(*wrapped_args, **wrapped_kwargs)
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/decorators.py", line 106, in wrapped
136 error return f(*wrapped_args, **wrapped_kwargs)
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreterbase/decorators.py", line 64, in wrapped
136 error return f(*wrapped_args, **wrapped_kwargs)
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreter/interpreter.py", line 832, in func_subproject
136 error return self.do_subproject(args[0], 'meson', kwargs)
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/interpreter/interpreter.py", line 873, in do_subproject
136 error subdir = r.resolve(subp_name, method, self.subproject)
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/wrap/wrap.py", line 340, in resolve
136 error self.apply_patch()
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/wrap/wrap.py", line 574, in apply_patch
136 error path = self.get_file_internal('patch')
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/wrap/wrap.py", line 556, in get_file_internal
136 error self.download(what, cache_path)
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/wrap/wrap.py", line 530, in download
136 error dhash, tmpfile = self.get_data(srcurl)
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/wrap/wrap.py", line 475, in get_data
136 error resp = open_wrapdburl(urlstring)
136 error File "/usr/src/example1/node_modules/mediasoup/worker/out/pip/mesonbuild/wrap/wrap.py", line 71, in open_wrapdburl
136 error return T.cast('http.client.HTTPResponse', urllib.request.urlopen(urllib.parse.urlunparse(url), timeout=REQ_TIMEOUT))
136 error File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen
136 error return opener.open(url, data, timeout)
136 error File "/usr/lib/python3.8/urllib/request.py", line 531, in open
136 error response = meth(req, response)
136 error File "/usr/lib/python3.8/urllib/request.py", line 640, in http_response
136 error response = self.parent.error(
136 error File "/usr/lib/python3.8/urllib/request.py", line 563, in error
136 error result = self._call_chain(*args)
136 error File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
136 error result = func(*args)
136 error File "/usr/lib/python3.8/urllib/request.py", line 755, in http_error_302
136 error return self.parent.open(new, timeout=req.timeout)
136 error File "/usr/lib/python3.8/urllib/request.py", line 525, in open
136 error response = self._open(req, data)
136 error File "/usr/lib/python3.8/urllib/request.py", line 542, in _open
136 error result = self._call_chain(self.handle_open, protocol, protocol +
136 error File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
136 error result = func(*args)
136 error File "/usr/lib/python3.8/urllib/request.py", line 1397, in https_open
136 error return self.do_open(http.client.HTTPSConnection, req,
136 error File "/usr/lib/python3.8/urllib/request.py", line 1358, in do_open
136 error r = h.getresponse()
136 error File "/usr/lib/python3.8/http/client.py", line 1344, in getresponse
136 error response.begin()
136 error File "/usr/lib/python3.8/http/client.py", line 307, in begin
136 error version, status, reason = self._read_status()
136 error File "/usr/lib/python3.8/http/client.py", line 276, in _read_status
136 error raise RemoteDisconnected("Remote end closed connection without"
136 error http.client.RemoteDisconnected: Remote end closed connection without response
136 error make: *** [Makefile:51: setup] Error 2
137 verbose exit 1

```

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/nazar-pc/32/369_2.png) [@nazar-pc](https://mediasoup.discourse.group/u/nazar-pc)\
**Post date:** [October 21, 2021, 10:52am UTC](https://mediasoup.discourse.group/t/error-occurs-when-npm-install-mediasoup-3/3466/2 "2021-10-21T10:52:13Z")

</div>

> [@ouxingning](#):
>
> `Remote end closed connection without response`

This is your error. Either network went down, or the server where you download it from had issues.

---

<div class="post-metadata">

**Author:** ![ouxingning](https://avatars.discourse-cdn.com/v4/letter/o/dfb087/32.png) [@ouxingning](https://mediasoup.discourse.group/u/ouxingning)\
**Post date:** [October 22, 2021, 3:40am UTC](https://mediasoup.discourse.group/t/error-occurs-when-npm-install-mediasoup-3/3466/3 "2021-10-22T03:40:11Z")

</div>

I got it, thank you.
