npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Android 8 farm.js bug

What I Wanted to Do

I’m doing “npm install” in any project on Android 8 via Termux app. Or just npm install

What Happened Instead

Getting error:
npm ERR! Cannot read property ‘length’ of undefined

npm ERR! A complete log of this run can be found in:

Reproduction Steps

Download termux app, install nodejs and npm and try instal any package


This is not a new issue, here it

Platform Info

Official Android 8 ROM of Galaxy S7

$ npm --versions
$ node -p process.platform
Usage: npm <command> 

this is a bug with termux itself. Please track the issue termux-side. I can’t promise npm will run on broken Node versions :slight_smile: