mediasoup@2.6.19 postinstall /var/www/html/media.jmsinternet.com/node/node_modules/mediasoup
make Release -C worker
make: Entering directory '/var/www/html/node/node_modules/mediasoup/worker'
/usr/bin/python2 ./scripts/configure.py -R mediasoup-worker
You need to install gyp in deps/gyp first, run:
./scripts/get_dep.sh gyp
Makefile:23: recipe for target 'Release' failed
make: *** [Release] Error 42
make: Leaving directory '/var/www/html/node/node_modules/mediasoup/worker'
npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/node/package.json'
npm WARN node No description
npm WARN node No repository field.
npm WARN node No README data
npm WARN node No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! mediasoup@2.6.19 postinstall: `make Release -C worker`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the mediasoup@2.6.19 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! /root/.npm/_logs/2020-01-29T16_01_01_078Z-debug.log
The folder node/node_modules/mediasoup was not created
Honestly no idea. I’ve tested in Debian 8.11 and Debian 10.1:
Debian 8.11
cat /etc/debian_version => 8.11
node -v => 8.16.0
python --version => Python 2.7.13
make -v => GNU Make 4.0
Debian 10.1
cat /etc/debian_version => 10.1
node -v => 10.15.2
python --version => Python 2.7.16
make -v => GNU Make 4.2.1
It works in both cases, so no idea what’s wrong with your host.
Try playing with worker/scripts/configure.py. That’s where the problem is happening. It seems that import gyp (which should find gyp into the path which includes deps/gyp/pylib) cannot find gyp module.
I just reformatted the server with Debian 10 and let you know if I get the same trouble.
(I remember I had it as well with Debian 8 with ovh.com last week)
The host I was using (ovh.com) was totally blank Debian 9 server (full dedicated powerful server)
But I installed certbot/letsencrypt and I know certbot installs some python packages. Now I will install mediasoup immediately as first package.