在server下运行npm install的时候,遇到下面的问题
来源:13-2 Mediasoup Demo的布署

WebRTC像是回到了家
2023-05-15
在server下运行npm install的时候,遇到下面的问题,请问是什么原因导致的?
npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /usr/bin/node /usr/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/root/.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.13 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 '/root/.npm/_cacache/tmp/git-clone4jvaWu/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 https://github.com/gluster/gstatus/pull/33),
npm ERR! # fallback to command without --system if the first one fails.
npm ERR! /usr/bin/python3 -m pip install --system --target=/root/.npm/_cacache/tmp/git-clone4jvaWu/worker/out/pip pip setuptools ||
npm ERR! /usr/bin/python3 -m pip install --target=/root/.npm/_cacache/tmp/git-clone4jvaWu/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=/root/.npm/_cacache/tmp/git-clone4jvaWu/worker/out/pip meson0.61.5 ninja1.10.2.4
npm ERR! make: Leaving directory '/root/.npm/_cacache/tmp/git-clone4jvaWu/worker’
npm ERR! npm WARN using --force Recommended protections disabled.
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:101: meson-ninja] 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 /root/.npm/_cacache/tmp/git-clone4jvaWu
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! /root/.npm/_logs/2023-03-08T01_00_21_525Z-debug-0.log
1回答
-
问题已经解决了吧?
112023-09-26
相似问题