Closed moeiscool closed 7 years ago
Yes, it fails to install as root, which is an upstream bug. I'll submit an issue.
I do not recommend installing it as root though, why do you want to do that?
i just use my terminal in root, so i dont have to deal with other errors that need me to be root :P . i also tried to install it without root.. it looks like it installs okay but i get a throw error saying wrtc is not defined or something when i try to run the application with node testfile.js
.
oh yes the specific reason why i use root is because express
or http
cant bind to ports without me being in root.
You have to be root to bind to ports below 1024. What you should do is program as an normal user and either start your server for example on port 8080, or run only your server as root. Or you will learn the hard way using root all the time is dangerous. ;-)
Anyway, can you provide a log on the second issue you are experiencing?
Edit: I just published a new version that might fix your problem. Please run npm install enslavism
again!
module.js:472
throw err;
^
Error: Cannot find module '/home/nodejs/cloudcam/node_modules/wrtc/build/wrtc/v0.0.61/Release/node-v51-linux-ia32/wrtc.node'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/nodejs/cloudcam/node_modules/wrtc/lib/peerconnection.js:6:15)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
Please report the bug upstream. I think your 32-bit CPU is not supported.
When you did npm install
, were there any errors?
A workaround is to build wrtc
then to symlink or copy the wrtc.node
binary to /home/nodejs/cloudcam/node_modules/wrtc/build/wrtc/v0.0.61/Release/node-v51-linux-ia32/wrtc.node
.
When i try to
npm install enslavism
i get an error withwrtc
. I am not sure how to deal with it. Any help would be appreciated!OS: Ubuntu 16.04
I am running the commands as root.