繁体   English   中英

如何修复 node.js 中的 Mediasoup 安装错误?

[英]How to fix Mediasoup installation error in node.js?

当我安装 mediasoup 库时。 我遇到了这个错误,我不知道是什么原因造成的,也不知道如何解决。 如果您遇到类似的问题,请提供帮助。

> mediasoup@3.8.4 postinstall C:\Users\shara\OneDrive\Desktop\MediaSoup\server\node_modules\mediasoup
> node npm-scripts.js postinstall

npm-scripts.js [INFO] running task "postinstall"
npm-scripts.js [INFO] executing command: python ./worker/scripts/configure.py --format=msvs -R mediasoup-worker
worker\deps\gyp\pylib\gyp\input.py:1186: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if the_dict_key is 'variables' and variable_name in the_dict:
['--format=msvs', '-R', 'mediasoup-worker', 'worker\\mediasoup-worker.gyp', '-I', 'worker\\common.gypi', '--depth=worker', '-Dhost_arch=x64', '-Dtarget_arch=x64', '-Dopenssl_fips=', '-Dmediasoup_asan=false', '-Dnode_byteorder=little']
Warning: Missing input files:
worker\deps\libuv\libuv\common.gypi
worker\deps\libwebrtc\libwebrtc\modules\remote_bitrate_estimator\bwe_defines.h
npm-scripts.js [INFO] executing command: MSBuild ./worker/mediasoup-worker.sln /p:Configuration=Release
Microsoft (R) Build Engine version 4.8.4084.0
[Microsoft .NET Framework, version 4.0.30319.42000]
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 10/9/2021 11:14:15 AM.
C:\Users\shara\OneDrive\Desktop\MediaSoup\server\node_modules\mediasoup\worker\mediasoup-worker.sln(44): Solution file
error MSB5011: Parent project GUID not found in "mediasoup-worker" project dependency section.

Build FAILED.

  C:\Users\shara\OneDrive\Desktop\MediaSoup\server\node_modules\mediasoup\worker\mediasoup-worker.sln(44): Solution fil
e error MSB5011: Parent project GUID not found in "mediasoup-worker" project dependency section.

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.06
npm WARN server@1.0.0 No description
npm WARN server@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mediasoup@3.8.4 postinstall: `node npm-scripts.js postinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mediasoup@3.8.4 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\shara\AppData\Roaming\npm-cache\_logs\2021-10-09T05_44_17_989Z-debug.log

这是因为您的环境没有为 mediasoup 设置好,请确保您从python 版本 3开始,并且根据您的操作系统,您需要一些开发要求,如他们的站点mediasoup 版本 3 安装指南中所述

你有什么问题,在这里告诉我!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM