sandypp77
(Sandypp77)
January 15, 2023, 12:21pm
1
npm ERR! code 1
npm ERR! path X:\Projek\Mediasoup\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] buildWorker()
npm ERR! npm-scripts.js [INFO] executeCmd(): make -C worker
npm ERR! # Updated pip and setuptools are needed for meson.
npm ERR! make: Leaving directory /x/Projek/Mediasoup/node_modules/mediasoup/worker' npm ERR! make: dirname: Command not found npm ERR! make: Entering directory
/x/Projek/Mediasoup/node_modules/mediasoup/worker’
npm ERR! make: pwd: Command not found
npm ERR! make: pwd: Command not found
npm ERR! make: /bin/sh: Command not found
npm ERR! make: pwd: Command not found
npm ERR! make: /bin/sh: Command not found
npm ERR! make: pwd: Command not found
npm ERR! make: /bin/sh: Command not found
npm ERR! make: pwd: Command not found
npm ERR! make: /bin/sh: Command not found
npm ERR! make: pwd: Command not found
npm ERR! make: /bin/sh: Command not found
npm ERR! make: *** [meson-ninja] Error 127
npm ERR! npm-scripts.js [ERROR] executeCmd() failed, exiting: Error: Command failed: make -C worker
Can someone help me ? i dont know how to fix it, i got stuck for 6 hours looking for the answer. Please Help
zaidiqbal
(Zaid Iqbal)
January 15, 2023, 12:32pm
2
Be sure to install all the required things before doing npm install:
sandypp77
(Sandypp77)
January 15, 2023, 12:40pm
3
Yep, i’ve already done that, but still it shows error
Node → v16.18.0
GNU Make → 3.81
python → 3.10.2
i already append the directory of make’s folder to path. But still it shows same errors
zaidiqbal
(Zaid Iqbal)
January 15, 2023, 12:58pm
4
Kindly show the versions of all these from terminal to make sure, like node -v, make -v etc. Make sure to restart the terminal after you have added something to PATH.
zaidiqbal
(Zaid Iqbal)
January 15, 2023, 1:03pm
5
Make sure to install PIP for python as well.
sandypp77
(Sandypp77)
January 15, 2023, 1:04pm
6
yeah, i always restart the terminal after added new directory to path
sandypp77
(Sandypp77)
January 15, 2023, 1:11pm
7
For the record, i’ve done all of these steps
1.install Node, Python, and PIP
2.install GNU make from MinGW (using link provided in [mediasoup :: Installation ])
3.add C:\MinGW\msys\1.0\bin to path
4.i’ve tried use vcvars64.bat from VS2019 or VS2022 to run npm install
sandypp77
(Sandypp77)
January 15, 2023, 1:15pm
8
Oh, btw. which ‘make’ should i install ? Is it from MSYS or MinGW ?
zaidiqbal
(Zaid Iqbal)
January 15, 2023, 1:25pm
9
From MSYS, looks all good to me. Which version of mediasoup you are installing? Can you try it with windows terminal application? Also remove node_modules and try again.
sandypp77
(Sandypp77)
January 15, 2023, 1:29pm
10
version 3 but i dont know the specific version of it (e.g : 3…) i just use ```
npm install mediasoup@3
okay, let me try it first
sandypp77
(Sandypp77)
January 15, 2023, 1:41pm
11
Here if i run it on powershell
CMD
CMD + VCVARS64.BAT
zaidiqbal
(Zaid Iqbal)
January 15, 2023, 1:53pm
12
I see it now please do install these as well from under MSYS using MinGW manager:
First try with these:
msys-base
msys-bash
msys-core
msys-coreutils
msys-diffutils
And if shown some error then try installing these as well:
msys-dos2unix
msys-file
msys-findutils
msys-gawk
msys-grep
msys-gzip
msys-libint
msys-libiconv
msys-tar
msys-xz
msys-texinfo
But first confirm me whether you have pwd.exe inside MinGW/msys/1.0/bin?
sandypp77
(Sandypp77)
January 15, 2023, 1:56pm
13
i dont have it in my MinGW/msys/1.0/bin. Do i need to download it from the internet ?
zaidiqbal
(Zaid Iqbal)
January 15, 2023, 1:57pm
14
Ok, no install it the same way you installed msys-make from MinGW application here:
sandypp77
(Sandypp77)
January 15, 2023, 2:08pm
16
i’ve tried your suggestions .
First try with these:
msys-base
msys-bash
msys-core
msys-coreutils
msys-diffutils
It still shows errors but the errors is different
zaidiqbal
(Zaid Iqbal)
January 15, 2023, 2:13pm
17
Looks like we are making progress. This time it is saying about not finding PIP. Can you try this command in terminal ‘python3 -m pip’?
sandypp77
(Sandypp77)
January 15, 2023, 2:16pm
18
Well, after i try commnad ‘python3 -m pip’ in terminal. it shows exaxtly as in here [ mediasoup :: Installation ]
zaidiqbal
(Zaid Iqbal)
January 15, 2023, 2:17pm
19
Ok and what does ‘python3’ outputs? If it shows error then you need to add python3 to environment variable with python3 installation path.