weird output OSX

Low level MIDI support for Node.js

weird output OSX

Postby abudaan » Tue Nov 17, 2015 3:05 pm

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
abudaan
 
Posts: 23
Joined: Thu Apr 19, 2012 7:43 am
Location: Planet Ulft

Re: weird output OSX

Postby sema » Tue Nov 17, 2015 3:25 pm

Wow, Node.js jumped from v.0.12 to v.5.* in few months!
I guess it's time to me to update!
sema
Site Admin
 
Posts: 306
Joined: Mon Oct 17, 2011 7:28 pm

Re: weird output OSX

Postby abudaan » Wed Nov 18, 2015 3:29 am

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)
abudaan
 
Posts: 23
Joined: Thu Apr 19, 2012 7:43 am
Location: Planet Ulft

Re: weird output OSX

Postby abudaan » Wed Nov 18, 2015 10:46 am

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"
  },


.
abudaan
 
Posts: 23
Joined: Thu Apr 19, 2012 7:43 am
Location: Planet Ulft

Re: weird output OSX

Postby sema » Wed Nov 18, 2015 11:27 am

That's a good idea for the quick fix, but hopefully, I can publish a new build shortly.
sema
Site Admin
 
Posts: 306
Joined: Mon Oct 17, 2011 7:28 pm

Re: weird output OSX

Postby sema » Thu Dec 10, 2015 12:35 am

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?
sema
Site Admin
 
Posts: 306
Joined: Mon Oct 17, 2011 7:28 pm


Return to jazz-midi

Who is online

Users browsing this forum: No registered users and 1 guest

cron