ue 推送直播流 推流 linux 实战

Linux or Mac

复制代码
./SignallingWebServer/platform_scripts/bash/start.sh

进入目录:

cd ./PixelStreamingInfrastructure\SignallingWebServer

sudo apt install npm

然后执行:

If you want to work on a specific library within this monorepo then cd into that directory and run:

npm install

npm run build

If you want to install all the dependencies and flush any existing node_modules, go to the root of the repo and run:

npm install

报错:

bash 复制代码
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'commander@12.1.0',
npm WARN EBADENGINE   required: { node: '>=18' },
npm WARN EBADENGINE   current: { node: 'v12.22.9', npm: '8.5.1' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'webpack-dev-middleware@7.4.2',
npm WARN EBADENGINE   required: { node: '>= 18.12.0' },
npm WARN EBADENGINE   current: { node: 'v12.22.9', npm: '8.5.1' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'webpack-dev-server@5.2.1',
npm WARN EBADENGINE   required: { node: '>= 18.12.0' },
npm WARN EBADENGINE   current: { node: 'v12.22.9', npm: '8.5.1' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'webpack-merge@6.0.1',
npm WARN EBADENGINE   required: { node: '>=18.0.0' },
npm WARN EBADENGINE   current: { node: 'v12.22.9', npm: '8.5.1' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'yaml@2.7.1',
npm WARN EBADENGINE   required: { node: '>= 14' },
npm WARN EBADENGINE   current: { node: 'v12.22.9', npm: '8.5.1' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'commander@12.1.0',
npm WARN EBADENGINE   required: { node: '>=18' },
npm WARN EBADENGINE   current: { node: 'v12.22.9', npm: '8.5.1' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@epicgames-ps/mediasoup-sdp-bridge@1.0.6',
npm WARN EBADENGINE   required: { node: '>=16.0' },
npm WARN EBADENGINE   current: { node: 'v12.22.9', npm: '8.5.1' }
npm WARN EBADENGINE }
npm ERR! Cannot convert undefined or null to object

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/chajing/.npm/_logs/2026-02-13T12_38_17_988Z-debug-0.log

解决方法:

方式一(推荐):用 nvm 管理 Node

1️⃣ 安装 nvm

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

然后:

source ~/.bashrc


2️⃣ 安装 Node 20

nvm install 20 nvm use 20 nvm alias default 20


3️⃣ 确认版本

node -v

应该看到:

v20.x.x

bash 复制代码
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"

然后安装:

nvm install 20

相关推荐
Mr YiRan2 小时前
C++语言学习之面向对象
java·c++·学习
kkkkkkkkk_12012 小时前
【强化学习】09周博磊强化学习纲要学习笔记——第五课上
笔记·深度学习·学习·强化学习
玩c#的小杜同学2 小时前
工业级稳定性:如何利用生产者-消费者模型(BlockingCollection)解决串口/网口高频丢包问题?
笔记·学习·性能优化·c#·软件工程
laplace01232 小时前
deque+yield+next语法
人工智能·笔记·python·agent·rag
一品威客网2 小时前
教育 APP 升级!跨端开发支持“多设备学习,无缝衔接”
学习
瑶光守护者2 小时前
【学习笔记】3GPP NR-NTN 移动性IRAT分析
笔记·学习·卫星通信·nr-ntn
望忆3 小时前
关于《Generative Adversarial Framework for Cold-Start Item Recommendation》一文的学习
学习
杂鱼Tong3 小时前
29. Revit API:扩展存储(ExtensibleStorage)
笔记
saoys3 小时前
Opencv 学习笔记:图像卷积操作(锐化核实战 + 数据类型避坑)
笔记·opencv·学习