Run the webrtc / samples test and I am having errors. "Cannot read the Key property service from undefined", for example:

I find it difficult to create https://github.com/webrtc/samples in win 7.
 I follow the steps in this document .
 But there are some errors, such as the following.

D:\demo\webrtcDemo\samples\test>node server.js
D:\demo\webrtcDemo\samples\test\server.js:20
key: keys.serviceKey,
         ^

TypeError: Cannot read property 'serviceKey' of undefined
at D:\demo\webrtcDemo\samples\test\server.js:20:14
at D:\demo\webrtcDemo\samples\node_modules\pem\lib\pem.js:278:24
at D:\demo\webrtcDemo\samples\node_modules\pem\lib\pem.js:168:24
at done (D:\demo\webrtcDemo\samples\node_modules\pem\lib\pem.js:78:24)
at D:\demo\webrtcDemo\samples\node_modules\pem\lib\pem.js:91:13
at D:\demo\webrtcDemo\samples\node_modules\pem\lib\pem.js:1044:20
at D:\demo\webrtcDemo\samples\node_modules\pem\lib\pem.js:1027:9
at D:\demo\webrtcDemo\samples\node_modules\pem\lib\pem.js:937:20
at D:\demo\webrtcDemo\samples\node_modules\pem\lib\pem.js:1092:20
at F (D:\demo\webrtcDemo\samples\node_modules\pem\node_modules\which\which.j
s:68:16)

Thanks for any answer ^ o ^ !!!

+4
source share
1 answer

I had the same problem and solved this by installing OpenSSL on my computer. I used Windows 10 and this: https://www.youtube.com/watch?v=PYLTtABP1F4 worked for me.

. config.cnf . xampp, : "C:\xampp\apache\conf\openssl.cnf".

: OPENSSL_CONF

: C:\xampp\apache\conf\openssl.cnf

Linux ( Ubuntu) , : https://ubuntuforums.org/showthread.php?t=2110429 config.cnf .

0

Source: https://habr.com/ru/post/1672132/


All Articles