Error install on ubuntu

$ npm install mediasoup
npm WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
loadDep:fsevents → addNam ▌ ╢███████████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
npm ERR! Linux 4.15.0-91-generic
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “install” “mediasoup”
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code EMISSINGARG

npm ERR! typeerror Error: Missing required argument #1
npm ERR! typeerror at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
npm ERR! typeerror at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
npm ERR! typeerror at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
npm ERR! typeerror at /usr/share/npm/lib/install/deps.js:457:7
npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror at /usr/share/npm/lib/fetch-package-metadata.js:37:12
npm ERR! typeerror at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
npm ERR! typeerror at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
npm ERR! typeerror at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror http://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /home/gs/public_html/demo/npm-debug.log

Install manually, please. Clone the mediasoup repo, enter it, run npm install. Then enter worker/ and run make, and paste the output error.

$ npm install

loadDep:fsevents → cache ▄ ╢████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟

npm ERR! Linux 4.15.0-91-generic

npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “install”

npm ERR! node v8.10.0

npm ERR! npm v3.5.2

npm ERR! code EMISSINGARG

npm ERR! typeerror Error: Missing required argument #1

npm ERR! typeerror at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)

npm ERR! typeerror at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)

npm ERR! typeerror at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)

npm ERR! typeerror at /usr/share/npm/lib/install/deps.js:457:7

npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50

npm ERR! typeerror at /usr/share/npm/lib/fetch-package-metadata.js:37:12

npm ERR! typeerror at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)

npm ERR! typeerror at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)

npm ERR! typeerror at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)

npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50

npm ERR! typeerror This is an error with npm itself. Please report this error at:

npm ERR! typeerror http://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:

npm ERR! /home/gs/media-server/npm-debug.log

gs@sitecom : ~/media-server $ make

touch: cannot touch ‘/usr/local/src/medooze/mcu/include/version.h’: No such file or directory

Makefile:231: recipe for target ‘touch’ failed

make: *** [touch] Error 1

gs@sitecom : ~/media-server $ sudo make

[sudo] password for gs:

touch: cannot touch ‘/usr/local/src/medooze/mcu/include/version.h’: No such file or directory

Makefile:231: recipe for target ‘touch’ failed

make: *** [touch] Error 1

Please, let’s focus. This is mediasoup, no medooze. Run make within the mediasoup/worker/ directory in the GIT checkout of mediasoup.

sorry was in wrong directory

mediasoup/worker $ make

/usr/bin/python2 ./scripts/configure.py -R mediasoup-worker

[’-R’, ‘mediasoup-worker’, ‘/home/gs/node_modules/mediasoup/worker/mediasoup-worker.gyp’, ‘-I’, ‘/home/gs/node_modules/mediasoup/worker/common.gypi’, ‘–depth=.’, ‘-f’, ‘make’, ‘-Goutput_dir=/home/gs/node_modules/mediasoup/worker/out’, ‘–generator-output’, ‘/home/gs/node_modules/mediasoup/worker/out’, ‘-Dgcc_version=90’, ‘-Dclang=0’, ‘-Dhost_arch=x64’, ‘-Dtarget_arch=x64’, ‘-Dopenssl_fips=’, ‘-Dmediasoup_asan=false’, ‘-Dnode_byteorder=little’]

make -j2 BUILDTYPE=Release -C out

make[1]: Entering directory ‘/home/gs/node_modules/mediasoup/worker/out’

make[1]: Nothing to be done for ‘all’.

make[1]: Leaving directory ‘/home/gs/node_modules/mediasoup/worker/out’

So there is no issue in mediasoup but in any other dependency you have in your project. Sorry.

Goto to any other folder (out of your project) and run npm install mediasoup@3. If it works, there is no issue related to mediasoup.

does not download any file and does not give any error only the warn about mkdirp and request
mediasoup-test $ npm install mediasoup@3

npm WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

gs@sitecom : ~/mediasoup-test $ ls

gs@sitecom : ~/mediasoup-test $

That does make any sense. If you run npm install mediasoup@3 in an empty folder, it must succeed (so you must see node_modules/ after installation completes) or it may fail (so you’ll see an error).

I’m afraid I cannot help much more.

can i give you access to server to check ?

No, sorry, I don’t do that.

i did in the worker make clean and make and it going good no error :
CXX(target) /home/gsm/node_modules/mediasoup/worker/out/Release/obj.target/mediasoup-worker/src/RTC/RTCP/XR.o
CXX(target) /home/gsm/node_modules/mediasoup/worker/out/Release/obj.target/mediasoup-worker/src/RTC/RTCP/XrDelaySinceLastRr.o
CXX(target) /home/gsm/node_modules/mediasoup/worker/out/Release/obj.target/mediasoup-worker/src/RTC/RTCP/XrReceiverReferenceTime.o
CXX(target) /home/gsm/node_modules/mediasoup/worker/out/Release/obj.target/mediasoup-worker/src/main.o
LINK(target) /home/gsm/node_modules/mediasoup/worker/out/Release/mediasoup-worker
make[1]: Leaving directory ‘/home/gsm/node_modules/mediasoup/worker/out’
now what i should to do ?

You don’t have any issue installing mediasoup. The problem is elsewhere in your other deps . I cannot help in that.

ok thank you

it was problem of npm version
i have update npm to the version 6.14.4 and the command sudo npm install mediasoup@3 :
CXX(target) /home/gsm/node_modules/mediasoup/worker/out/Release/obj.target/mediasoup-worker/src/main.o

LINK(target) /home/gsm/node_modules/mediasoup/worker/out/Release/mediasoup-worker

make[1]: Leaving directory ‘/home/gsm/node_modules/mediasoup/worker/out’

make: Leaving directory ‘/home/gsm/node_modules/mediasoup/worker’

  • mediasoup@3.5.5

updated 1 package and audited 12221 packages in 948.048s

2 packages are looking for funding

run npm fund for details

found 0 vulnerabilities

gsm@sitecom : ~ $

now i have the folder node_modules

1 Like

/mediasoup-demo/app $ sudo gulp dist

[20:22:25] NODE_ENV: development

[20:22:25] Using gulpfile ~/mediasoup-demo/app/gulpfile.js

[20:22:25] Starting ‘dist’…

[20:22:25] Starting ‘clean’…

[20:22:25] Finished ‘clean’ after 107 ms

[20:22:25] Starting ‘lint’…

[20:22:36] Finished ‘lint’ after 11 s

[20:22:36] Starting ‘bundle’…

[20:23:25] Finished ‘bundle’ after 49 s

[20:23:25] Starting ‘html’…

[20:23:25] Finished ‘html’ after 46 ms

[20:23:25] Starting ‘css’…

[20:23:29] Finished ‘css’ after 4.24 s

[20:23:29] Starting ‘resources’…

[20:23:29] Finished ‘resources’ after 183 ms

[20:23:29] Finished ‘dist’ after 1.07 min

gsm@sitecom : ~/mediasoup-demo/app $

Cool :slight_smile:

thank you
could you please tell me how can i run the demo ?

The mediasoup-demo project has a README explaining how to install it.

BTW: Community means helping others, not just yourself

thank you so much