Hi. If you install the current (2.1.2) release from NPM, you'll get an error when Node-jxa runs osacompile:
osacompile: couldn't write to file /Users/john/code/node-jxa/deleteme.scpt: No such file or directory
The vars at the top of node-jxa.js look like this in that release:
const HEAD = 'window = this;\nObjC.import("stdlib");\ntry {\n ';
const TAIL = ';\n} catch (e) {\n console.log( e.message );\n $.exit(1); \n}\n$.exit(0);';
const OSA_JXA_CMD = 'osacompile';
const OSA_JXA_CMD_ARGS = ['-l', 'JavaScript', '-o', '/Users/john/code/node-jxa/deleteme.scpt' ];
You can check code in NPM's module package by getting the archive address with npm view node-jxa dist.tarball and downloading the archive.
My guess is you might want to republish the release if NPM allows that, because code for the release seems to be different here on Github.
Hi. If you install the current (2.1.2) release from NPM, you'll get an error when Node-jxa runs
osacompile:osacompile: couldn't write to file /Users/john/code/node-jxa/deleteme.scpt: No such file or directoryThe vars at the top of
node-jxa.jslook like this in that release:You can check code in NPM's module package by getting the archive address with
npm view node-jxa dist.tarballand downloading the archive.My guess is you might want to republish the release if NPM allows that, because code for the release seems to be different here on Github.