-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
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
NPM ERR! Cannot read property 'length' of undefined #2737
Comments
Would it be resolved by updating nodejs-current to v10 #2621 ? |
I have same error :/ |
replace $cpu with number of cores (or 1 if unsure) sed -i "s|require('os').cpus().length|$cpu|g" /data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/worker-farm/lib/farm.js |
See #1798 |
It should be noted that it may have to do with it being the beta version of termux because I couldn't get this fixed to work but as soon as I downgraded to the non beta version of termux and applied this fix it worked right away |
Can someone clarify? I have seen this 7 ways on seven sites/threads. I have tried changing it to a hard-coded 1, 4, and 8 (8 core phone) and deleting the rest of the line. Using Is there a solution to this?! |
npm/npm#19265
npm/npm#1855
This disruptive bug is still not elegantly fixed. Can we get a reliable fix from standard install please?
The text was updated successfully, but these errors were encountered: