Skip to content
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

Node.js 8 NPM Error on Android – 8.0 Oreo #778

Closed
mskian opened this issue Jul 14, 2018 · 11 comments
Closed

Node.js 8 NPM Error on Android – 8.0 Oreo #778

mskian opened this issue Jul 14, 2018 · 11 comments

Comments

@mskian
Copy link

mskian commented Jul 14, 2018

Node.js 8 NPM Error on Android – 8.0 Oreo

While try to Install Node packages via npm I got this Below error

Example

$ npm i -g npm

npm ERR! Cannot read property 'length' of undefined
npm ERR! A complete log of this run can be found in:
npm ERR!     /data/data/com.termux/files/home/.npm/_logs/2018-07-14T07_55_29_568Z-debug.log

Any Solution to fix this?

@Grimler91
Copy link
Member

The mentioned log in the error message sould be useful to see what's going on.

@mskian
Copy link
Author

mskian commented Jul 14, 2018

@Grimler91 - Getting the same error while installing different npm packages
I saw a lot of threads regarding this issue
is there any method to fix this? by patching any files?

@Mini-Web
Copy link

I modified /usr/lib/node_modules/npm/node_modules/worker-farm/lib/farm.js to set maxConcurrentWorkers to 4.

@mskian
Copy link
Author

mskian commented Jul 14, 2018

@Mini-Web is this Safe method?

@aadilayub
Copy link

aadilayub commented Jul 17, 2018

Google Pixel running Android Pie. I am experiencing this issue as well.

@Quasic
Copy link
Contributor

Quasic commented Jul 21, 2018

I was testing different methods of fixing it. I think it is safe to guess the number; a bad guess should only affect speed, not accuracy, for npm. If you want to try my script in https://github.com/Quasic/cpuinfo, it tries various methods of aquiring the number. Some are more reliable than others.

@F0RIS
Copy link

F0RIS commented Aug 15, 2018

Galaxy S7 with Oreo. Same thing :/

@F0RIS
Copy link

F0RIS commented Sep 4, 2018

any updates on this?

@aadilayub
Copy link

Yes, I am also waiting for an update on this bug

@F0RIS
Copy link

F0RIS commented Sep 9, 2018

why still nobody do something?
https://npm.community/t/android-8-farm-js-bug/1941

@fornwall
Copy link
Member

Closed in favour of termux/termux-packages#1798, track that issue!

@ghost ghost locked and limited conversation to collaborators Oct 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants