We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See termux issues#1798
The text was updated successfully, but these errors were encountered:
目前有个临时的解决方案:root打开node,例如 sudo npm i ws
sudo npm i ws
Sorry, something went wrong.
看到了,/proc/stat 不可读引起的权限问题。 从 Android P 开始,/proc 已经不可能被非系统 app 读取了。 也许有其他解决办法,把 api level 降低也许有用
/proc/stat
/proc
直接改 /data/data/io.neoterm/files/usr/lib/node_modules/npm/node_modules/worker-farm/lib/farm.js,按你的手机 cpu 核心数写上去,亲测可用。
/data/data/io.neoterm/files/usr/lib/node_modules/npm/node_modules/worker-farm/lib/farm.js
'use strict' const DEFAULT_OPTIONS = { maxCallsPerWorker : Infinity , maxConcurrentWorkers : 8 // !!! here , maxConcurrentCallsPerWorker : 10 , maxConcurrentCalls : Infinity , maxCallTime : Infinity // exceed this and the whole worker is terminated , maxRetries : Infinity , forcedKillTime : 100 , autoStart : false }
No branches or pull requests
See termux issues#1798
The text was updated successfully, but these errors were encountered: