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

Installing mdns on Windows 7, node-gyp rebuild fails. #136

Open
MichelPaus opened this issue May 19, 2015 · 7 comments
Open

Installing mdns on Windows 7, node-gyp rebuild fails. #136

MichelPaus opened this issue May 19, 2015 · 7 comments

Comments

@MichelPaus
Copy link

Hello,

I've been trying to get a Meteor install running, but it keeps on breaking while updating mdns dependencies.
More specifically on node-gyp rebuild
I get the following log output:

C:\xampp\htdocs\Github\panini>meteor
[[[[[ C:\xampp\htdocs\Github\panini ]]]]]

=> Started proxy.
=> Started MongoDB.
soixantecircuits:mdns: updating npm dependencies -- mdns...
npm WARN package.json [email protected] No
description
npm WARN package.json [email protected] No
repository field.
npm WARN package.json [email protected] No
README data
gypnpm ERR! Windows_NT 6.1.7601
npm ERR! argv
"C:\\Users\\Michiel\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.1.3\\mt-o
s.windows.x86_32\\dev_bundle\\bin\\\\node.exe"
"C:\\Users\\Michiel\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.1.3\\mt-o
s.windows.x86_32\\dev_bundle\\bin\\node_modules\\npm\\bin\\npm-cli.js"
"install"
npm ERR! node v0.10.36
npm ERR! npm  v2.7.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the mdns package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls mdns
npm ERR! There is likely additional logging output above.

=> Errors prevented startup:

While building package soixantecircuits:mdns:
error: couldn't install npm packages from npm-shrinkwrap

=> Your application has errors. Waiting for file change.  

The soixantecircuits:mdns package is simply a wrapper around mdns, calling that package.

Thank you for your help

@y-lohse
Copy link
Contributor

y-lohse commented May 20, 2015

Do you meet the requirements for node-gyp? The yare a bit extensive on Windows.

@MichelPaus
Copy link
Author

I'm sorry, I forgot to mention that.
Was struggling for a while already.

I do believe I did most of these things.

  • installed and coupled python 2.7 instead v.3
  • Got Bonjour SDK
  • Installed VS 2010 Express
  • Installed 64bit SDK and compiler update: SDK 7.1

I'm not sure if node-gyp picks up the right version of Visual Studio. My log output doesn't give any errors regarding that, as other people do seem to get. This could mean node-gyp plays nicely with Visual Studio, or not at all..
I don't know how to test this?

@y-lohse
Copy link
Contributor

y-lohse commented May 20, 2015

Yeah that was going to be my second question. I'm also on WIndows 7 and whenever I want to compile node modules with node-gyp, I need to use the console bundled with VisualStudio instead of the regular one, as it has access to extra variables.
It's located in C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat or whatever the path to your VS installation is. Maybe you can try installing mdns using that console, see if that works better.

@MichelPaus
Copy link
Author

I uninstalled VS2010 and then installed Visual Studio 2013 Express.
Using vcvarsall.bat, like you recommended, mdns and node-gyp global install went flawlessly :)
Thanks alot!

Still struggling do get my Meteor install up and running though..

@happyiphone
Copy link

Thank so much for this, I've been struggling with this problem for a few hours. By using the VS shell it worked just fine.

@davidmurdoch
Copy link

Hopefully this will be a time saver for someone else (even though this is already mentioned in the install section)...

Install was failing for me on Windows 10 because the BONJOUR_SDK_HOME environment variable wasn't available in the vcvarsall.bat command prompt (despite it being in listed in Windows' Environment Variables -> System variables). I had to manually set it in the vcvarsall.bat cmd prompt by running $env:BONJOUR_SDK_HOME = "C:\Program Files\Bonjour SDK\" before running npm install mdns.

System Info:

@akshay20jha
Copy link

Hello,

I've been trying to get a Meteor install running, but it keeps on breaking while updating mdns dependencies.
More specifically on node-gyp rebuild
I get the following log output:

C:\xampp\htdocs\Github\panini>meteor
[[[[[ C:\xampp\htdocs\Github\panini ]]]]]

=> Started proxy.
=> Started MongoDB.
soixantecircuits:mdns: updating npm dependencies -- mdns...
npm WARN package.json [email protected] No
description
npm WARN package.json [email protected] No
repository field.
npm WARN package.json [email protected] No
README data
gypnpm ERR! Windows_NT 6.1.7601
npm ERR! argv
"C:\\Users\\Michiel\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.1.3\\mt-o
s.windows.x86_32\\dev_bundle\\bin\\\\node.exe"
"C:\\Users\\Michiel\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.1.3\\mt-o
s.windows.x86_32\\dev_bundle\\bin\\node_modules\\npm\\bin\\npm-cli.js"
"install"
npm ERR! node v0.10.36
npm ERR! npm  v2.7.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the mdns package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls mdns
npm ERR! There is likely additional logging output above.

=> Errors prevented startup:

While building package soixantecircuits:mdns:
error: couldn't install npm packages from npm-shrinkwrap

=> Your application has errors. Waiting for file change.  

The soixantecircuits:mdns package is simply a wrapper around mdns, calling that package.

Thank you for your help

Dear all you need is just to install Bonjour from Apple`s website and also set PATH in User variables

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

5 participants