Page 1 of 1

weird output OSX

Posted: Tue Nov 17, 2015 3:05 pm
by abudaan

Code: Select all

mkdir test
cd test
npm install web-midi-api
cd node_modules/web-midi-api
node test.js
prints a zillion times:

Code: Select all

ref = 0x100f02550	0x1

Re: weird output OSX

Posted: Tue Nov 17, 2015 3:25 pm
by sema
Wow, Node.js jumped from v.0.12 to v.5.* in few months!
I guess it's time to me to update!

Re: weird output OSX

Posted: Wed Nov 18, 2015 3:29 am
by abudaan
Yes, but on OSX I tested it with Node 0.12.2

On Linux I have Node 4.2.2 installed and I get this error when I run test.js

Code: Select all

module.js:460
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: Module version mismatch. Expected 46, got 14.
    at Error (native)
    at Object.Module._extensions..node (module.js:460:18)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/home/abudaan/workspace/test/node_modules/jazz-midi/index.js:10:16)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)

Re: weird output OSX

Posted: Wed Nov 18, 2015 10:46 am
by abudaan
Maybe as a quick fix you could add an engine key to your package.json. Then users can switch to an older version of Nodejs using nvm if necessary.

Code: Select all

"engines": {
    "node": ">=0.10.0 <=0.12.2"
  },
.

Re: weird output OSX

Posted: Wed Nov 18, 2015 11:27 am
by sema
That's a good idea for the quick fix, but hopefully, I can publish a new build shortly.

Re: weird output OSX

Posted: Thu Dec 10, 2015 12:35 am
by sema
I have updated the module for Node.js v.4+ on Windows and Linux.
Still cannot find the right compiler that would work with the latest node-gyp on Mac...
Any ideas?