-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
androidIssues and PRs related to the android platform.Issues and PRs related to the android platform.osIssues and PRs related to the os subsystem.Issues and PRs related to the os subsystem.
Description
- Version:
v11.6.0
- Platform:
Linux localhost 4.9.96-g641303d-ab5108637 #0 SMP PREEMPT Fri Nov 2 19:33:38 UTC 2018 aarch64 Android
- Subsystem:
os
Steps to reproduce
- Install
Termux
on Pixel 3 (Android 9)- Worked normally on Nexus 5X (Android 7.1.2)
- Install
nodejs
viaapt
- Try
npm i -g npm
(or any other install command)- Very minimal reproducing code:
require('os').cpus()
- Very minimal reproducing code:
- See log
Problem
require('os').cpus()
throws error.
Full log
0 info it worked if it ends with ok
1 verbose cli [ '/data/data/com.termux/files/usr/bin/node',
1 verbose cli '/data/data/com.termux/files/usr/bin/npm',
1 verbose cli 'i',
1 verbose cli '-g',
1 verbose cli 'npm' ]
2 info using npm@6.5.0-next.0
3 info using node@v11.6.0
4 verbose npm-session d6d3aa36df417d22
5 verbose stack TypeError: Cannot read property 'length' of undefined
5 verbose stack at Object.cpus (os.js:94:28)
5 verbose stack at Object.<anonymous> (/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/worker-farm/lib/farm.js:6:56)
5 verbose stack at Module._compile (internal/modules/cjs/loader.js:721:30)
5 verbose stack at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
5 verbose stack at Module.load (internal/modules/cjs/loader.js:620:32)
5 verbose stack at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
5 verbose stack at Function.Module._load (internal/modules/cjs/loader.js:552:3)
5 verbose stack at Module.require (internal/modules/cjs/loader.js:657:17)
5 verbose stack at require (internal/modules/cjs/helpers.js:22:18)
5 verbose stack at Object.<anonymous> (/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/worker-farm/lib/index.js:3:14)
5 verbose stack at Module._compile (internal/modules/cjs/loader.js:721:30)
5 verbose stack at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
5 verbose stack at Module.load (internal/modules/cjs/loader.js:620:32)
5 verbose stack at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
5 verbose stack at Function.Module._load (internal/modules/cjs/loader.js:552:3)
5 verbose stack at Module.require (internal/modules/cjs/loader.js:657:17)
6 verbose cwd /data/data/com.termux/files/home/btcaddr-test
7 verbose Linux 4.9.96-g641303d-ab5108637
8 verbose argv "/data/data/com.termux/files/usr/bin/node" "/data/data/com.termux/files/usr/bin/npm" "i" "-g" "npm"
9 verbose node v11.6.0
10 verbose npm v6.5.0-next.0
11 error Cannot read property 'length' of undefined
12 verbose exit [ 1, true ]
Metadata
Metadata
Assignees
Labels
androidIssues and PRs related to the android platform.Issues and PRs related to the android platform.osIssues and PRs related to the os subsystem.Issues and PRs related to the os subsystem.