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
diff --git a/lib/system.js b/lib/system.js
index 3c1fe90..8d1b8ae 100644
--- a/lib/system.js+++ b/lib/system.js@@ -60,6 +60,7 @@ module.exports = function () {
_.each(history, function (h) {
if (h.endTime > mark && h.exitFlag === CRASHED) {
+ console.log(h.exitData.err)
++crashCount
}
})
It is:
{ Error: spawn npm ENOENT
at exports._errnoException (util.js:1024:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:192:19)
at onErrorNT (internal/child_process.js:374:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn npm',
path: 'npm',
spawnargs: [ 'start' ] }
It seems that windows wants npm.cmd as the start command, which obviously isn't ideal. There is a long-standing issue in the old node archive repo that addresses this: nodejs/node-v0.x-archive#2318. The short end of the stick is the .cmd can be omitted if shell: true is added to the spawn args, here:
I'm not sure if this would adversely affect things, so I ran the tests....
There are currently two tests failing in windows, under test/runner.test.js -- check grep result and check grepall result are returning 0.... excluding those, with this change, there is only 1 test failure.... under processRunner.test.js, the process fail test isn't running null for child.id
If not sure why this is, but I tried recreated the same conditions using fuge with this change, and it seems to still work (a process.exit(1) after a timeout is still handled properly)
The text was updated successfully, but these errors were encountered:
When using the following for a start command under windows,
The following is returned when attempting to start:
Adding the following reveals the actual error:
It is:
It seems that windows wants
npm.cmd
as the start command, which obviously isn't ideal. There is a long-standing issue in the old node archive repo that addresses this: nodejs/node-v0.x-archive#2318. The short end of the stick is the.cmd
can be omitted ifshell: true
is added to the spawn args, here:I'm not sure if this would adversely affect things, so I ran the tests....
There are currently two tests failing in windows, under
test/runner.test.js
--check grep result
andcheck grepall result
are returning 0.... excluding those, with this change, there is only 1 test failure.... underprocessRunner.test.js
, theprocess fail test
isn't runningnull
forchild.id
If not sure why this is, but I tried recreated the same conditions using fuge with this change, and it seems to still work (a process.exit(1) after a timeout is still handled properly)
The text was updated successfully, but these errors were encountered: