Is there anything special I have to do to run a node app as a hook on Windows?
I was experimenting with this yesterday on Cordova 3.5, and when I have the
following hook as a before prepare:
#! /usr/bin/env node
console.log('this is a node module');
I get the following error:
The system cannot find the path specified.
Hook failed with error code 1:
C:\Users\jwargo\dev\lunchmenu\hooks\before_prepare\test.js
So it's seeing the hook and not 'finding' it?
On Stack Overflow, the suggestion was to remove the first line and just have
the console line:
console.log('this is a node module');
When I do that, I get a different error:
Hook failed with error code Unknown system errno 193:
C:\Users\jwargo\dev\lunchmenu\hooks\before_prepare\test.js
--
John M. Wargo
@johnwargo <http://twitter.com/johnwargo>
www.johnwargo.com <http://www.johnwargo.com>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------