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

errors with the mdsn when module is used #4

Open
KingCheng1987 opened this issue Apr 19, 2016 · 4 comments
Open

errors with the mdsn when module is used #4

KingCheng1987 opened this issue Apr 19, 2016 · 4 comments

Comments

@KingCheng1987
Copy link

KingCheng1987 commented Apr 19, 2016

I did the test with the api followed:

var server = require('airplay-server')("my pc airplay");

server.on('request',function(req,res){
console.log("aiplay request",res);
});

server.listen(6000);

but, when the test actived,the errors came followed:
module.js:339
throw err;
^

Error: Cannot find module '../build/Release/dns_sd_bindings'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/home/king/re/node_modules/airplay-mdns- server/node_modules/mdns/lib/dns_sd.js:32:22)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)

what can i do to fix the error?

@watson
Copy link
Owner

watson commented Apr 24, 2016

What operation system are you running on? Seems like it can't find the dns bindings

@buzai
Copy link

buzai commented Jun 4, 2016

Error: Cannot find module '..\build\Release\dns_sd_bindings'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object. (C:\Users\Administrator\Desktop\airp
npminstall\mdns\2.3.3\mdns\lib\dns_sd.js:32:22)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)

it is win7 ,it is same error ,how can fix it.

@KingCheng1987
Copy link
Author

KingCheng1987 commented Jun 6, 2016

I updated my nodejs,then the problem disappeared.But i forgot the special situation,if I don't misremember ,my nodejs is not match with the package.json

@simkuns
Copy link

simkuns commented Apr 23, 2021

@buzai

Error: Cannot find module '..\build\Release\dns_sd_bindings'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object. (C:\Users\Administrator\Desktop\airp
npminstall\mdns\2.3.3\mdns\lib\dns_sd.js:32:22)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)

it is win7 ,it is same error ,how can fix it.

I was facing the same issue, however, downloading and installing Bonjour SDK fixed it

Bonjour SDK will create system environment variable BONJOUR_SDK_HOME which points to installation dir

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

4 participants