ethand91 / mediasoup3-record-demo

Simple Record Demo using Mediasoup 3 and GStreamer
198 stars 93 forks source link

npm install error #74

Closed wann2 closed 2 years ago

wann2 commented 2 years ago

Server: Ubuntu Server 20.04 LTS Node.js: v16.14.2 Npm: 8.5.0 Python: python3

When I "npm install" in server, I got the below error message. Could you please let me know what I am missing?

npm ERR! code 1 npm ERR! path /home/ubuntu/mediasoup3-record-demo/server/node_modules/mediasoup npm ERR! command failed npm ERR! command sh -c node npm-scripts.js postinstall npm ERR! npm-scripts.js [INFO] running task "postinstall" npm ERR! npm-scripts.js [INFO] executing command: node npm-scripts.js worker:build npm ERR! npm-scripts.js [INFO] running task "worker:build" npm ERR! npm-scripts.js [INFO] executing command: make -C worker npm ERR! make: Entering directory '/home/ubuntu/mediasoup3-record-demo/server/node_modules/mediasoup/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 npm ERR! # https://github.com/gluster/gstatus/pull/33), fallback to command without npm ERR! # --system if the first one fails. npm ERR! /usr/bin/python3 -m pip install --system --target=/home/ubuntu/mediasoup3-record-demo/server/node_modules/mediasoup/worker/out/pip pip setuptools || \ npm ERR! /usr/bin/python3 -m pip install --target=/home/ubuntu/mediasoup3-record-demo/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! /usr/bin/python3 -m pip install --upgrade --target=/home/ubuntu/mediasoup3-record-demo/server/node_modules/mediasoup/worker/out/pip meson ninja npm ERR! make: Leaving directory '/home/ubuntu/mediasoup3-record-demo/server/node_modules/mediasoup/worker' npm ERR! /usr/bin/python3: No module named pip npm ERR! /usr/bin/python3: No module named pip npm ERR! /usr/bin/python3: No module named pip npm ERR! make: *** [Makefile:75: meson-ninja] Error 1

wann2 commented 2 years ago

I resolved it. sudo apt install python3-pip