Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find native module #35

Open
KipyegoEvans opened this issue Jun 14, 2018 · 2 comments
Open

Unable to find native module #35

KipyegoEvans opened this issue Jun 14, 2018 · 2 comments

Comments

@KipyegoEvans
Copy link

I am getting this error . UNABLE TO FIND NATIVE MODULE when I run it on Node Js

@ghost
Copy link

ghost commented Jan 13, 2021

Same here after installing with npm on Windows 10:

CWD>node node_modules\serverless-webrtc\serverless-webrtc.js
CWD\node_modules\node-cmake\index.js:40
  if(!found) throw new Error('Unable to find native module');
             ^

Error: Unable to find native module
    at requireNativeModule (CWD\node_modules\node-cmake\index.js:40:20)
    at Object.<anonymous> (CWD\node_modules\wrtc\lib\binding.js:3:39)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (CWD\node_modules\wrtc\lib\peerconnection.js:3:15)

CWD is a placeholder.

@PatchyProjects
Copy link

I was also having this issue. It seems that it is missing the wrtc dependency, which first required me to install node-pre-gyp

I was able to fix this issue by installing missing dependencies by running these commands at the root of the project:

npm install node-pre-gyp
npm install wrtc

then starting the server:
node .\serverless-webrtc.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants