Question Malcolm Needham · Nov 8, 2017

Node.js version

Does anyone know where to find a cache.node that works with Cache version 2016.1.1.108.0? I am currently getting  this:

Error: Unable to load shared library C:\InterSystems\TryCache\bin\cache.node''

I am using Windows 7 Pro + SP1.

Thanks!

Comments

Rob Tweed · Nov 12, 2017

The version of cache.node must match:

- the OS you're using (in your case 64-bit Windows)

- the version of Node.js you're using - you haven't specified that

Unfortunately InterSystems so far haven't done the sensible thing and publish cache.node in NPM, so you may or may not find that the versions of cache.node included with your Cache distribution support the version of Node.js you wish to use.

0
Malcolm Needham  Nov 12, 2017 to Rob Tweed

Thanks, Rob! Yeah, I'm not sure what version of node.js I have. It just appeared in my Program Files directory, but the properties don't show the version.

0
Malcolm Needham  Nov 12, 2017 to Malcolm Needham

Actually, node -v shows v6.9.4

0
Rob Tweed  Nov 12, 2017 to Malcolm Needham

You need the cache610.node file for Windows 64 bit

Rob

0
Malcolm Needham  Nov 12, 2017 to Rob Tweed

Ah-ha! Do you know where I find that Rob?

0
Malcolm Needham  Nov 12, 2017 to Malcolm Needham

Hey Rob, I was able to get it working. I used an old version of cache.node - cache0100.node and renamed it to cache.node then installed Node.js 0.1. at first, it could not open the database, and I had to enable %Service_CallIn. After that, I was able to retrieve global directory.

0
Rob Tweed  Nov 12, 2017 to Malcolm Needham

Hi Malcolm - I hope you mean Node.js 0.10 :-)  0.1 predates even my earliest experiments with Node.js in 2010!

You'll need to talk to your ISC account rep to get the latest cache.node builds.

So the next thing you need to do is look at QEWD.js (http://qewdjs.com) to see how you can really begin to use Cache with Node.js productively

Rob

0
Malcolm Needham  Nov 12, 2017 to Rob Tweed

Yes, type 0.10. I know you have a great product with QEWD. I work as a VA contractor and I am getting ready to move to a new project where they want to use node.js. I will definitely tell them about QEWD! Thanks, Rob!

0