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
I try to run with nodemon and forever using -c option.
but, it occur ENOENT error to 'nodemon' using -c option.
So, I found a problem like below.
child-process module use win-bash script on window os.
it should use full file name to bash script like 'nodemon.cmd' if run some command.
So, I try to run with full command like 'forever start -c nodemon.cmd ./main.js'.
But It occur same error like below.
Error: spawn nodemon ENOENT
at exports._errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
Finally I found a additional problem to monitor.js
monitor.js
=======================================
//
// ### @Private {Object} safetyChecks
// Define default safety checks for commands
// with spaces in Windows & Linux
//
var safetyChecks = {
windows: /(?:"(.[^\/])"|(\w+))(?:\s(.))?/, //<-- Regular expressions truncate characters below '.' char.
linux: /(.?[^\\])(?: (.)|$)/
};
====================================
So, I will fix regex and pull request.
Please review my request.
Hello,
I try to run with nodemon and forever using -c option.
but, it occur ENOENT error to 'nodemon' using -c option.
So, I found a problem like below.
child-process module use win-bash script on window os.
it should use full file name to bash script like 'nodemon.cmd' if run some command.
So, I try to run with full command like 'forever start -c nodemon.cmd ./main.js'.
But It occur same error like below.
Error: spawn nodemon ENOENT
at exports._errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
Finally I found a additional problem to monitor.js
=======================================
//
// ### @Private {Object} safetyChecks
// Define default safety checks for commands
// with spaces in Windows & Linux
//
var safetyChecks = {
windows: /(?:"(.[^\/])"|(\w+))(?:\s(.))?/, //<-- Regular expressions truncate characters below '.' char.
linux: /(.?[^\\])(?: (.)|$)/
};
====================================
So, I will fix regex and pull request.
Please review my request.
** Refer Window path: node_modules/.bin **
node_modules.bin\nodemon
node_modules.bin\nodemon.cmd
@romandev
The text was updated successfully, but these errors were encountered: