node.js version

Julien-Robert's icon

Hello

I'd like to know how to get the version of nodejs used in Max 8.1. Correct me if I'm wrong but this is a different version from the one installed in my system (osx 10.13).

Thanks

Ben Bracken's icon

you should be able to just call process.version in your script. Something like:

Max.addHandler("node_version", () => {
    Max.outlet(process.version);
});

Julien-Robert's icon

Thanks, is it possible to change the version? let's say I want to use 8.13.0 like the one on my system?

I tried installing n but I can't make it work with "script n 8.13.0".

Ben Bracken's icon