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

Details

This is not a new issue, here it
https://github.com/npm/npm/issues/19170

https://github.com/termux/termux-packages/issues/1798
https://github.com/termux/termux-app/issues/778

Platform Info

Official Android 8 ROM of Galaxy S7

$ npm --versions
5.6.0
$ 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: