Skip to content

Commit

Permalink
Limit number of sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdracz committed Jan 8, 2025
1 parent 87c8ff4 commit f00269d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/generator_specs/fake-bin/npm
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ unless ENV["SHAKAPACKER_EXPECTED_PACKAGE_MANGER"] == binary
raise StandardError, "(#{binary}) this is not the package manager you're looking for..."
end

exec({ "NPM_CONFIG_FETCH_RETRY_MINTIMEOUT" => "20000", "NPM_CONFIG_FETCH_RETRY_MAXTIMEOUT" => "120000" }, "npx", "-y", "#{binary}@#{major_version}", *ARGV)
exec({
"NPM_CONFIG_FETCH_RETRY_MINTIMEOUT" => "20000",
"NPM_CONFIG_FETCH_RETRY_MAXTIMEOUT" => "120000",
"NPM_CONFIG_MAXSOCKETS" => "1"
}, "npx", "-y", "#{binary}@#{major_version}", *ARGV)

0 comments on commit f00269d

Please sign in to comment.