muaz-khan / WebRTC-Experiment

WebRTC, WebRTC and WebRTC. Everything here is all about WebRTC!!
https://www.webrtc-experiment.com/
MIT License
11.76k stars 3.94k forks source link

problem with socketio-over-nodejs #243

Open nim4n opened 10 years ago

nim4n commented 10 years ago

hi I'm very new in webrtc. I have some problem with installing socketio-over-nodejs. am I missed something? nima@parsix:~/Temp$ node -v v0.7.8 nima@parsix:~/Temp$ npm -v 1.1.18 nima@parsix:~/Temp$ npm install socketio-over-nodejs npm http GET https://registry.npmjs.org/socketio-over-nodejs

npm ERR! Error: SSL Error: SELF_SIGNED_CERT_IN_CHAIN npm ERR! at ClientRequest. (/usr/local/lib/node_modules/npm/node_modules/request/main.js:483:26) npm ERR! at ClientRequest.emit (events.js:87:17) npm ERR! at HTTPParser.onIncoming (http.js:1419:11) npm ERR! at HTTPParser.onHeadersComplete (http.js:115:25) npm ERR! at CleartextStream.ondata (http.js:1290:24) npm ERR! at CleartextStream._push (tls.js:396:27) npm ERR! at SecurePair.cycle (tls.js:752:20) npm ERR! at EncryptedStream.write (tls.js:131:13) npm ERR! at Socket.ondata (stream.js:38:26) npm ERR! at Socket.emit (events.js:87:17) npm ERR! You may report this log at: npm ERR! http://github.com/isaacs/npm/issues npm ERR! or email it to: npm ERR! npm-@googlegroups.com npm ERR! npm ERR! System Linux 3.12.20-0 npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "socketio-over-nodejs" npm ERR! cwd /home/nima/Temp npm ERR! node -v v0.7.8 npm ERR! npm -v 1.1.18 npm ERR! message SSL Error: SELF_SIGNED_CERT_IN_CHAIN

npm ERR! Error: EACCES, open 'npm-debug.log' npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! npm ERR! System Linux 3.12.20-0 npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "socketio-over-nodejs" npm ERR! cwd /home/nima/Temp npm ERR! node -v v0.7.8 npm ERR! npm -v 1.1.18 npm ERR! path npm-debug.log npm ERR! code EACCES npm ERR! message EACCES, open 'npm-debug.log' npm ERR! errno {} npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/nima/Temp/npm-debug.log npm not ok

muaz-khan commented 10 years ago

Sorry, I'm not sure about the issue. You may need to try as sudo/root user. BTW, there is another method, you can try:

cd ~/
mkdir socketio-over-nodejs
cd socketio-over-nodejs
wget http://www.webrtc-experiment.com/packages/socketio-over-nodejs.tar
tar -xf socketio-over-nodejs.tar
node signaler.js

Ref: https://www.webrtc-experiment.com/packages/ and How-to-install.txt

nim4n commented 10 years ago

tnx It worked