Node.js 8 NPM Error on Android – 8.0 Oreo
While try to Install Node packages via npm I got this Below error
$ 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?
The mentioned log in the error message sould be useful to see what's going on.
@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?
I modified /usr/lib/node_modules/npm/node_modules/worker-farm/lib/farm.js to set maxConcurrentWorkers to 4.
@mini-web is this Safe method?
Google Pixel running Android Pie. I am experiencing this issue as well.
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.
Galaxy S7 with Oreo. Same thing :/
any updates on this?
Yes, I am also waiting for an update on this bug
why still nobody do something?
https://npm.community/t/android-8-farm-js-bug/1941
Closed in favour of https://github.com/termux/termux-packages/issues/1798, track that issue!