You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when I try to run this, I receive a validator error:
internal/validators.js:120
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Array
at validateString (internal/validators.js:120:11)
at Object.join (path.js:375:7)
(cross post from StackOverflow)
I'm running Windows 10, and I would like to execute a Windows .bat script from
forever
(v3.0.0)forever
is installed globally and working fine, and I have successfully used to start other applications.In this instance I am using a
forever
JSON config file that looks like:This seems like this should be correct based these facts:
spawn
forever
is callingchild_process.spawn
under the hoodforever-monitor
checks ifscript
is an array and splits it in a way that should workBut when I try to run this, I receive a validator error:
because
forever/cli.js
callspath.join
on the script option before passing it along toforever-monitor
I have also tried these combinations:
which just starts
cmd
without executing the batch file, andwhich throws an error in
forever-monitor
because it assumescommand
will be a string, not an array.Is there any way I can pass the necessary
/c
argument through?The text was updated successfully, but these errors were encountered: