You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hello world example works for me with node 0.12, but fails with iojs 1.4.3 on Windows 8 x64.
I removed node 0.12 and verified nodejs folder was completely removed from Program Files. I then installed iojs 1.4.3 and get the following in a shell window on asking the versions.
$ node -v
v1.4.3
$ npm -v
2.6.1
I ran npm cache clean, and deleted any old .node_gyp folders in my profile to ensure there were no remnants of node 0.12. I then updated 'nan' to the latest version by npm uninstall --save nan, npm install --save nan. There were no errors from nod_gyp, but on running npm test, I get the following error.
Error: Module did not self-register.
at Error (native)
at Module.load (module.js:339:32)
at Function.Module._load (module.js:294:12)
at Module.require (module.js:349:17)
at require (module.js:368:17)
at bindings (C:\Users\philip\Desktop\node-addon-examples\1_hello_world\nan\node_modules\bindings\bindings.s:76:44)
at Object.<anonymous> (C:\Users\philip\Desktop\node-addon-examples\1_hello_world\nan\hello.js:1:94)
at Module._compile (module.js:444:26)
at Object.Module._extensions..js (module.js:462:10)
at Module.load (module.js:339:32)
npm ERR! Test failed. See above for more details.
When this failed with "nan", I then tried the node_0.12 folder version that doesn't use the nan macros, but it shows the same behaviour.
Should the Hello World example work with iojs on WIndows x64, or have I perhas got some setting or old version of a library lurking not cleared?
thanks,
--philip
The text was updated successfully, but these errors were encountered:
After reading about similar issues in the iojs issue list (io.js/issues/965), it appears that, at least in iojs 1.4.3, that c++ extensions only work if started from an executable called "iojs.exe". If you rename the executable or have links to it, such as a hardlink to node.exe, then you get the behaviour reported above.
So there is no issue in the hello world example, as it appears to be a behaviour of the current builds of iojs and node. (for completeness I confirmed that with node 0.12 i get the same behaviour - renaming the executable exhibits prevents binary/c++ modules loading).
The hello world example works for me with node 0.12, but fails with iojs 1.4.3 on Windows 8 x64.
I removed node 0.12 and verified nodejs folder was completely removed from Program Files. I then installed iojs 1.4.3 and get the following in a shell window on asking the versions.
I ran npm cache clean, and deleted any old .node_gyp folders in my profile to ensure there were no remnants of node 0.12. I then updated 'nan' to the latest version by npm uninstall --save nan, npm install --save nan. There were no errors from nod_gyp, but on running npm test, I get the following error.
When this failed with "nan", I then tried the node_0.12 folder version that doesn't use the nan macros, but it shows the same behaviour.
Should the Hello World example work with iojs on WIndows x64, or have I perhas got some setting or old version of a library lurking not cleared?
thanks,
--philip
The text was updated successfully, but these errors were encountered: