Hi,I want to install the demo,try it many times on ubutntu,but always fail,I do not know what is the problem.Details as the follow.,lease give me some advices for it.Thank you!
npm WARN deprecated source-map-url@0.4.1: See GitHub - lydell/source-map-url: [DEPRECATED] Tools for working with sourceMappingURL comments.
npm WARN deprecated urix@0.1.0: Please see GitHub - lydell/urix: [DEPRECATED] Makes Windows-style paths more unix and URI friendly.
npm WARN deprecated resolve-url@0.2.1: GitHub - lydell/resolve-url: [DEPRECATED] Like Node.js’ `path.resolve`/`url.resolve` for the browser.
npm WARN deprecated source-map-resolve@0.5.3: See GitHub - lydell/source-map-resolve: [DEPRECATED] Resolve the source map and/or sources for a generated file.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /usr/local/lib/nodejs/node-v16.18.1-linux-x64/bin/node /usr/local/lib/nodejs/node-v16.18.1-linux-x64/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/home/server/.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.10 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 ‘/home/server/.npm/_cacache/tmp/git-cloneJEQhHl/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=/home/server/.npm/_cacache/tmp/git-cloneJEQhHl/worker/out/pip pip setuptools ||
npm ERR! /usr/bin/python3 -m pip install --target=/home/server/.npm/_cacache/tmp/git-cloneJEQhHl/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! Using cached pip-23.0.1-py3-none-any.whl (2.1 MB)
npm ERR! Collecting setuptools
npm ERR! Using cached setuptools-67.3.3-py3-none-any.whl (1.1 MB)
npm ERR! Installing collected packages: pip, setuptools
npm ERR! Successfully installed pip-23.0.1 setuptools-67.3.3
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=/home/server/.npm/_cacache/tmp/git-cloneJEQhHl/worker/out/pip meson==0.61.5 ninja==1.10.2.4
npm ERR! Collecting meson==0.61.5
npm ERR! Using cached meson-0.61.5-py3-none-any.whl (862 kB)
npm ERR! Collecting ninja==1.10.2.4
npm ERR! Using cached ninja-1.10.2.4-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl (120 kB)
npm ERR! Installing collected packages: ninja, meson
npm ERR! Successfully installed meson-0.61.5 ninja-1.10.2.4
npm ERR! /home/server/.npm/_cacache/tmp/git-cloneJEQhHl/worker/out/pip/bin/meson setup
npm ERR! --prefix /home/server/.npm/_cacache/tmp/git-cloneJEQhHl/worker/out/Release
npm ERR! --bindir ‘’
npm ERR! --libdir ‘’
npm ERR! --buildtype release
npm ERR! -Db_ndebug=true
npm ERR! -Db_pie=true
npm ERR! -Db_staticpic=true
npm ERR! --reconfigure
npm ERR! “”
npm ERR! /home/server/.npm/_cacache/tmp/git-cloneJEQhHl/worker/out/Release/build ||
npm ERR! /home/server/.npm/_cacache/tmp/git-cloneJEQhHl/worker/out/pip/bin/meson setup
npm ERR! --prefix /home/server/.npm/_cacache/tmp/git-cloneJEQhHl/worker/out/Release
npm ERR! --bindir ‘’
npm ERR! --libdir ‘’
npm ERR! --buildtype release
npm ERR! -Db_ndebug=true
npm ERR! -Db_pie=true
npm ERR! -Db_staticpic=true
npm ERR! “”
npm ERR! /home/server/.npm/_cacache/tmp/git-cloneJEQhHl/worker/out/Release/build
npm ERR! The Meson build system
npm ERR! Version: 0.61.5
npm ERR! Source dir: /home/server/.npm/_cacache/tmp/git-cloneJEQhHl/worker
npm ERR! Build dir: /home/server/.npm/_cacache/tmp/git-cloneJEQhHl/worker/out/Release/build
npm ERR! Build type: native build
npm ERR! Project name: mediasoup-worker
npm ERR! Project version: undefined
npm ERR! C compiler for the host machine: cc (gcc 9.4.0 “cc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0”)
npm ERR! C linker for the host machine: cc ld.bfd 2.34
npm ERR! C++ compiler for the host machine: c++ (gcc 9.4.0 “c++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0”)
npm ERR! C++ linker for the host machine: c++ ld.bfd 2.34
npm ERR! Host machine cpu family: x86_64
npm ERR! Host machine cpu: x86_64
npm ERR! Downloading openssl source from https://www.openssl.org/source/openssl-3.0.7.tar.gz
npm ERR! Download size: 15107575
npm ERR! Downloading: …
npm ERR! Downloading openssl patch from https://wrapdb.mesonbuild.com/v2/openssl_3.0.7-1/get_patch
npm ERR! Download size: 11462134
npm ERR! Downloading: …
npm ERR! A fallback URL could be specified using patch_fallback_url key in the wrap file
npm ERR!
npm ERR! meson.build:164:0: ERROR: Incorrect hash for patch:
npm ERR! 8f04d911dc22d1dddc6a192ab27d6d8275976a252bd9c73e09f95f1f927e42b5 expected
npm ERR! 8b5d6059db1d6b52b3e0ce79ba286c47dbeb0b357c3f5c6ca6ed045b4520a70f actual.
npm ERR!
npm ERR! A full log can be found at /home/server/.npm/_cacache/tmp/git-cloneJEQhHl/worker/out/Release/build/meson-logs/meson-log.txt
npm ERR! make: Leaving directory ‘/home/server/.npm/_cacache/tmp/git-cloneJEQhHl/worker’
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! ERROR: launchpadlib 1.10.13 requires testresources, which is not installed.
npm ERR! Directory does not contain a valid build tree:
npm ERR! /home/server/.npm/_cacache/tmp/git-cloneJEQhHl/worker/out/Release/build
npm ERR! make: *** [Makefile:110: setup] 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 /home/server/.npm/_cacache/tmp/git-cloneJEQhHl
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! /home/server/.npm/_logs/2023-02-21T09_03_41_753Z-debug-0.log
npm ERR! A complete log of this run can be found in:
npm ERR! /home/server/.npm/_logs/2023-02-21T08_58_19_530Z-debug-0.log