i am geeting error while doing npm install getting the below error
node_modules/mediasoup
npm ERR! command failed
npm ERR! command sh -c node npm-scripts.mjs postinstall
npm ERR! npm-scripts [INFO] [postinstall] downloadPrebuiltWorker() [tarUrl:https://github.com/versatica/mediasoup/releases/download/3.12.13/mediasoup-worker-3.12.13-darwin-x64.tgz]
npm ERR! npm-scripts [INFO] [postinstall] ensureDir() [dir:worker/prebuild]
npm ERR! npm-scripts [INFO] [postinstall] ensureDir() [dir:worker/out/Release]
npm ERR! npm-scripts [INFO] [postinstall] downloadPrebuiltWorker() | got mediasoup-worker prebuilt binary
npm ERR! npm-scripts [INFO] [postinstall] downloadPrebuiltWorker() | checking fetched mediasoup-worker prebuilt binary in current host
npm ERR! npm-scripts [INFO] [postinstall] couldn’t fetch any mediasoup-worker prebuilt binary, building it locally
npm ERR! npm-scripts [INFO] [postinstall] buildWorker()
npm ERR! npm-scripts [INFO] [postinstall] executeCmd(): make -C 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! python3 -m pip install --system --target=/Users/akash/Desktop/Desktop - Akash’s MacBook Pro/nettu-meet/server/node_modules/mediasoup/worker/out/pip pip setuptools || \
npm ERR! python3 -m pip install --target=/Users/akash/Desktop/Desktop - Akash’s MacBook Pro/nettu-meet/server/node_modules/mediasoup/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! Installation failed, likely because PIP is unavailable, if you are on Debian/Ubuntu or derivative please install the python3-pip package
npm ERR! # Install meson
and ninja
using pip
into custom location, so we don’t
npm ERR! # depend on system-wide installation.
npm ERR! python3 -m pip install --upgrade --target=/Users/akash/Desktop/Desktop - Akash’s MacBook Pro/nettu-meet/server/node_modules/mediasoup/worker/out/pip meson==1.2.1 ninja==1.10.2.4
npm ERR! npm-scripts [ERROR] [postinstall] downloadPrebuiltWorker() | fetched mediasoup-worker prebuilt binary fails to run in this host [status:127]
npm ERR!
npm ERR! Usage:
npm ERR! /usr/local/bin/python3 -m pip install [options] [package-index-options] …
npm ERR! /usr/local/bin/python3 -m pip install [options] -r [package-index-options] …
npm ERR! /usr/local/bin/python3 -m pip install [options] [-e] …
npm ERR! /usr/local/bin/python3 -m pip install [options] [-e] …
npm ERR! /usr/local/bin/python3 -m pip install [options] <archive url/path> …
npm ERR!
npm ERR! no such option: --system
npm ERR! ERROR: Invalid requirement: ‘-’
npm ERR! ERROR: Invalid requirement: ‘-’
npm ERR! make: *** [meson-ninja] Error 1
npm ERR! npm-scripts [ERROR] [postinstall] executeCmd() failed, exiting: Error: Command failed: make -C worker