Trying to install the mediasoup library on a Windows machine via:
npm install mediasoup@3
The app that needs this library is being developed on a MacOS machine and works fine when being installed. The live app will be hosted on a Windows Server.
When running the command in an empty npm folder on the Windows machine, it returns the following 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.log
I have node, python, pip, and GNU make installed on the machine.
Is there something else that needs to be configured or why is this error being shown?
By the way, if there is already a Make at the location that is in the PATH, then it will continue to run even if the instructions are followed, and Msys folder is appended to the end of the PATH.
I feel this topic comes up too much, is there a possibility someone with a clean install of windows could walk us through from which applications to use/what to install, how to install.
Would make for great documentation and a mass majority of users use windows but don’t understand these steps clearly. I certainly don’t use windows or I would help lots but if someone can cover this in a new post I’m sure it’d be widely used!!!
Wouldn’t it be easier, at least for the time being, just to use a Python script to download all necessary MSYS files to a temporary folder during installation? For example, this one downloads and extracts MSYS and make to the current folder:
I have an similar error, it is definetly a wrong make version ? I installed the gnu make from the installation page and put the bin folder to the path variable.
I dont see there which version i should use. I am on windows and dowlnoaded the gnu make from the link in the instructions. But i also tried with other make versions and same error