I can see from Google that this is a fairly common issue and is normallydown to a mismatch with the version of node, which shouldn't be the case
One of our requirements for an node.js Express based application being
tested on our IBM i is for it to support Kerberos based authentication.
Simple enough we thought - just find and install a suitable package (we are
trying 'kerberos') with npm and use that. It wasn't quite that simple.
This package has a native module that requires compiling (node-gyp) which
took this to a whole new level of needing to get the chroot and gcc
compiler support installed. After much trial and error, trying 5733OPS
option 3 then the more up-to-date scripts from ibmichroot, reading lots of
posts here, updating gmake (to 4.2 as 4.1 had the virtual memory exhausted
error), etc we have just about managed to get working.
The npm install of the kerberos package now completes but we receive the
following error when trying to run a test script using it...
return process.dlopen(module, path._makeLong(filename));
Error: Module did not self-register.
at Error (native)
at Object.Module._extensions..node (module.js:597:18)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/xx/node/krb/node_
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
I can see from Google that this is a fairly common issue and is normally
down to a mismatch with the version of node, which shouldn't be the case
here. Has anybody else here encountered this or know of a possible solution?