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

Building with nw-gyp for Node-Webkit #330

Closed
etx opened this issue May 10, 2014 · 4 comments
Closed

Building with nw-gyp for Node-Webkit #330

etx opened this issue May 10, 2014 · 4 comments

Comments

@etx
Copy link

etx commented May 10, 2014

I'm getting an error when trying to compile with nw-gyp on MacOS 10.9 for Node-Webkit. Not sure if it's a nw-gyp issue, or a config issue in the binding.gyp file. Can anyone shed some light on this for me? I'm inexperienced with native modules.

gyp: Undefined variable module_name in binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/nw-gyp/lib/configure.js:352:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Darwin 13.1.0
gyp ERR! command "node" "/usr/local/bin/nw-gyp" "configure" "--target=0.9.2"
gyp ERR! cwd /Users/etx/Desktop/CANBusTriple/node_modules/serialport
gyp ERR! node -v v0.10.26
gyp ERR! nw-gyp -v v0.12.2
gyp ERR! not ok 
@Talamantez
Copy link

I'm also experiencing error with this and I'm new to it too, but I saw some threads like this one that suggest that you need python 2.6 for things to work with node-gyp. Good luck, and please keep posting anything you learn. http://stackoverflow.com/questions/21155922/error-installing-node-gyp-on-ubuntu

@kraag22
Copy link

kraag22 commented May 14, 2014

@Talamantez this issue is about nw-gyp, not about node-gyp

For me worked this solution. (I needed serialport 1.4.0 for node-webkit 0.9.2 and not x64 version, on mac 10.9)

cd node_modules/serialport
node-pre-gyp rebuild --runtime=node-webkit --target=0.9.2 --target_arch=ia32

@xseignard
Copy link

Thanks @kraag22, on ubuntu 14.04 I did the following:

sudo npm install node-pre-gyp -g
node-pre-gyp rebuild --runtime=node-webkit --target=0.8.6

I had to use the 0.8.x branch of node-webkit for some obscure reason I don't get, but it fit my needs.

Thanks again!

oh, and hi @etx fun to see you there after seeing you here: xseignard/cordovarduino#2 !

@etx
Copy link
Author

etx commented Aug 10, 2014

node-pre-gyp as mentioned above does in fact work well, Thanks for the help all.

Good to see you as well xseignard!

@etx etx closed this as completed Aug 10, 2014
@lock lock bot locked as resolved and limited conversation to collaborators May 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants