question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot install mdns

See original GitHub issue

C:\Windows\system32>npm install mdns

mdns@2.4.0 install C:\Windows\system32\node_modules\mdns node-gyp rebuild

C:\Windows\system32\node_modules\mdns>if not defined npm_config_node_gyp (node “C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\…..\node_modules\node-gyp\bin\node-gyp.js” rebuild ) else (node “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” rebuild ) MSBUILD : error MSB1009: Project file does not exist. Switch: build/binding.sln gyp ERR! build error gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild” gyp ERR! cwd C:\Windows\system32\node_modules\mdns gyp ERR! node -v v10.15.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open ‘C:\Windows\system32\package.json’ npm WARN system32 No description npm WARN system32 No repository field. npm WARN system32 No README data npm WARN system32 No license field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! mdns@2.4.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the mdns@2.4.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\nikhi\AppData\Roaming\npm-cache_logs\2019-04-25T12_34_47_771Z-debug.log

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
agnatcommented, Apr 25, 2019

I don’t think this is an issue with node_mdns. It seems more like an issue with your tool chain. Note that node-gyp fails to create the solution file. I’d suggest to test the tool chain by building the “node addon examples”.

On 25. Apr 2019, at 14:35, nikhilbaad1 notifications@github.com wrote:

C:\Windows\system32>npm install mdns

mdns@2.4.0 install C:\Windows\system32\node_modules\mdns node-gyp rebuild

C:\Windows\system32\node_modules\mdns>if not defined npm_config_node_gyp (node “C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin.…\node_modules\node-gyp\bin\node-gyp.js” rebuild ) else (node “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” rebuild ) MSBUILD : error MSB1009: Project file does not exist. Switch: build/binding.sln gyp ERR! build error gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild” gyp ERR! cwd C:\Windows\system32\node_modules\mdns gyp ERR! node -v v10.15.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open ‘C:\Windows\system32\package.json’ npm WARN system32 No description npm WARN system32 No repository field. npm WARN system32 No README data npm WARN system32 No license field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! mdns@2.4.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the mdns@2.4.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\nikhi\AppData\Roaming\npm-cache_logs\2019-04-25T12_34_47_771Z-debug.log

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

0reactions
agnatcommented, Apr 19, 2021

Works fine on mac os using node 14.16.1. Still, most likely an issue with the local tool chain…

Read more comments on GitHub >

github_iconTop Results From Across the Web

can't install mdns · Issue #2103 · nodejs/node-gyp - GitHub
Failed at the mdns@2.5.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above....
Read more >
NodeJS / NPM / node-gyc / make - something's not working ...
Exit status 1 npm ERR! npm ERR! Failed at the mdns@2.7.2 install script. npm ERR! This is probably not a problem with npm....
Read more >
mdns - npm
Package: mdns; Description: multicast DNS service discovery; Installation: npm install mdns (see below); Documentation: mdns user guide ...
Read more >
How to enable mDNS on Windows 10 build 17134?
The solution is to first disable mDNS in Windows. This has to be done in the registry. As usual, the standard warning applies:...
Read more >
Troubleshooting printer discovery problems in an mDNS ...
PaperCut Mobility Print, like Apple's Bonjour, uses the mDNS protocol to advertise services on the local network. By design the client and server...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found