Hello, I am slightly new to the NodeJS so please excuse my ignorance.
I am trying to get node-webkit-v0.8.6-linux-x64 to work with zmq (
https://github.com/JustinTulloss/zeromq.node).
When I attempt to rebuild zmq. I get the following error message:
$ nw-gyp rebuild --target=v0.8.6
gyp info it worked if it ends with ok
gyp info using nw-...@0.12.2
gyp info using no...@0.10.22 | linux | x64
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/nw-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/user/dev/js/node-webkit/stable/node-webkit-v0.8.6-linux-x64/node_modules/zmq/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/nw-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/user/.nw-gyp/0.8.6/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/user/.nw-gyp/0.8.6',
gyp info spawn args '-Dmodule_root_dir=/home/user/dev/js/node-webkit/stable/node-webkit-v0.8.6-linux-x64/node_modules/zmq',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
Traceback (most recent call last):
File "/usr/local/lib/node_modules/nw-gyp/gyp/gyp_main.py", line 18, in <module>
sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
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:789:12)
gyp ERR! System Linux 3.11.0-12-generic
gyp ERR! command "node" "/usr/local/bin/nw-gyp" "rebuild" "--target=v0.8.6"
gyp ERR! cwd /home/user/dev/js/node-webkit/stable/node-webkit-v0.8.6-linux-x64/node_modules/zmq
gyp ERR! node -v v0.10.22
gyp ERR! nw-gyp -v v0.12.2
gyp ERR! not ok
What does this mean? `npm install zmq` works fine.
System Info:
$ node --version
v0.10.22
$ npm --version
1.3.14
$ python -V
Python 2.7.5+
Thanks a lot!