Intentando instalar la biblioteca mediasoup en una máquina con Windows a través de:
npm install mediasoup@3La aplicación que necesita esta biblioteca se está desarrollando en una máquina MacOS y funciona bien cuando se instala. La aplicación en vivo se alojará en un servidor de Windows.
Al ejecutar el comando en una carpeta npm vacía en la máquina con Windows, devuelve el siguiente error.
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. npm ERR! code 1 npm ERR! path D:\hostingspaces\test\livebidding\node_modules\mediasoup npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /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 'D:/hostingspaces/test/livebidding/node_modules/mediasoup/worker' npm ERR! # Updated pip and setuptools are needed for meson npm ERR! make: Leaving directory 'D:/hostingspaces/test/livebidding/node_modules/mediasoup/worker' npm ERR! process_begin: CreateProcess(NULL, dirname D:/hostingspaces/test/livebidding/node_modules/mediasoup/worker/Makefile, ...) failed. npm ERR! Makefile:7: pipe: No error npm ERR! process_begin: CreateProcess(NULL, pwd, ...) failed. npm ERR! Makefile:37: pipe: No error npm ERR! process_begin: CreateProcess(NULL, pwd, ...) failed. npm ERR! Makefile:56: pipe: No error npm ERR! The system cannot find the path specified. npm ERR! process_begin: CreateProcess(NULL, pwd, ...) failed. npm ERR! Makefile:62: pipe: Bad file descriptor npm ERR! The system cannot find the path specified. npm ERR! process_begin: CreateProcess(NULL, pwd, ...) failed. npm ERR! Makefile:62: pipe: Bad file descriptor npm ERR! The system cannot find the path specified. npm ERR! process_begin: CreateProcess(NULL, pwd, ...) failed. npm ERR! Makefile:65: pipe: Bad file descriptor npm ERR! '[' is not recognized as an internal or external command, npm ERR! operable program or batch file. npm ERR! process_begin: CreateProcess(NULL, pwd, ...) failed. npm ERR! Makefile:28: pipe: Bad file descriptor npm ERR! process_begin: CreateProcess(NULL, # Updated pip and setuptools are needed for meson, ...) failed. npm ERR! make (e=2): The system cannot find the file specified. npm ERR! make: *** [Makefile:57: meson-ninja] Error 2 npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Local\npm-cache\_logs\2022-03-08T11_27_43_896Z-debug.logLos documentos de instalación de mediasoup muestran los requisitos previos necesarios para la instalación, que aparentemente están todos instalados.
¿Hay algo más que deba configurarse o por qué se muestra este error?
Intente ejecutar el siguiente comando para actualizar la versión de su npm
npm install -g npm