We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa64cdc commit fd961d6Copy full SHA for fd961d6
lib/monitor/run.js
@@ -86,7 +86,7 @@ function run(options) {
86
if (
87
// this is a hack to avoid forking if there's a node argument being passed
88
// it's a short term fix, and I'm not 100% sure that `fork` is the right way
89
- cmd.args[0].indexOf('-') === -1 &&
+ (cmd.args[0] || '').indexOf('-') === -1 &&
90
executable === 'node' &&
91
utils.version.major > 4
92
) {
0 commit comments