# not able to install on macos

**URL:** <https://mediasoup.discourse.group/t/not-able-to-install-on-macos/5565>\
**Category:** mediasoup libraries\
**Created:** [October 4, 2023, 5:58pm UTC](https://mediasoup.discourse.group/t/not-able-to-install-on-macos/5565 "2023-10-04T17:58:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aky6](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/aky6/32/2366_2.png) [@aky6](https://mediasoup.discourse.group/u/aky6)\
**Post date:** [October 4, 2023, 5:58pm UTC](https://mediasoup.discourse.group/t/not-able-to-install-on-macos/5565/1 "2023-10-04T17:58:40Z")

</div>

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](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](https://github.com/gluster/gstatus/pull/33)),

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

---

<div class="post-metadata">

**Author:** ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Post date:** [October 4, 2023, 6:18pm UTC](https://mediasoup.discourse.group/t/not-able-to-install-on-macos/5565/2 "2023-10-04T18:18:04Z")

</div>

As explained in the documentation that you haven’t read, the installation path must not contain white spaces:

> **[mediasoup :: Installation](https://mediasoup.org/documentation/v3/mediasoup/installation/#all-platforms)**
>
> Cutting Edge WebRTC Video Conferencing

---

<div class="post-metadata">

**Author:** ![aky6](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/aky6/32/2366_2.png) [@aky6](https://mediasoup.discourse.group/u/aky6)\
**Post date:** [October 4, 2023, 6:31pm UTC](https://mediasoup.discourse.group/t/not-able-to-install-on-macos/5565/3 "2023-10-04T18:31:10Z")

</div>

i checked again .not a single white space . i am using “npm i mediasoup”.  
Help me i am newbie

---

<div class="post-metadata">

**Author:** ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Post date:** [October 4, 2023, 7:02pm UTC](https://mediasoup.discourse.group/t/not-able-to-install-on-macos/5565/4 "2023-10-04T19:02:40Z")

</div>

The installation path is the folder and parent folders in which you are trying to install mediasoup, and it has white spaces.
