Skip to content

Commit 2c9979a

Browse files
Set spawn timeout to 5 min instead of 300 ms
The timeout option here didn't do anything on node 6.17.1 because this option was introduced in node v14.18.0 and it's in milliseconds, not seconds. See https://nodejs.org/api/child_process.html#child_processspawncommand-args-options
1 parent 4b6d43d commit 2c9979a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ module.exports.install = function(specPath) {
108108
var cp = spawn(npmCommand, npmArgs, {
109109
cwd: packagePath,
110110
stdio: 'inherit',
111-
timeout: 300
111+
timeout: 300000
112112
})
113113
return new RSVP.Promise(function(resolve, reject) {
114114
cp.on('exit', function(code, signal) {

0 commit comments

Comments
 (0)