Skip to content
Permalink
Browse files

disable concurrency in case of libuv/libuv#1459

  • Loading branch information...
Quasic authored and rvagg committed Nov 16, 2017
1 parent be6dd2e commit 0b2349c6c7ed5c51e234e418fad226875313e773
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/farm.js
@@ -2,7 +2,7 @@

const DEFAULT_OPTIONS = {
maxCallsPerWorker : Infinity
, maxConcurrentWorkers : require('os').cpus().length
, maxConcurrentWorkers : (require('os').cpus() || { length: 1 }).length

This comment has been minimized.

Copy link
@trusktr

trusktr Jan 11, 2018

My Android phone has 8 cores. Is there a better fix so that I don't just use 1 core?

This comment has been minimized.

Copy link
@Kikobeats

Kikobeats Jan 11, 2018

Contributor

related #65

This comment has been minimized.

Copy link
@mistertown

mistertown Feb 26, 2018

@trusktr you can manually edit maxConcurrentWorkers to whatever number you like in /usr/lib/node_modules/npm/node_modules/worker-farm/lib/farm.js. Courtesy of this thread.

Details on Termux file system access are here, but cd $PREFIX/lib/node_modules/npm/node_modules/worker-farm/lib/ should get you there.

This comment has been minimized.

Copy link
@bakaleos

bakaleos May 13, 2018

This is very useful on my Mi MIX2S,thank you very much.

, maxConcurrentCallsPerWorker : 10
, maxConcurrentCalls : Infinity
, maxCallTime : Infinity // exceed this and the whole worker is terminated

3 comments on commit 0b2349c

@ivitan

This comment has been minimized.

Copy link

replied Jul 20, 2018

cant not run npm i -g npm on Termux

@bozeyman9000

This comment has been minimized.

Copy link

replied Nov 17, 2018

Why would enabling extra cores help? Im confused. Is it the amount of bits that the command requires?

@Tymski

This comment has been minimized.

Copy link

replied Dec 6, 2018

doesn't help for me

Please sign in to comment.
You can’t perform that action at this time.