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

npm install - cannot read property length of undefined #3114

Closed
roccomuso opened this issue Dec 4, 2018 · 1 comment
Closed

npm install - cannot read property length of undefined #3114

roccomuso opened this issue Dec 4, 2018 · 1 comment

Comments

@roccomuso
Copy link

I had to use switch to yarn.

npm keeps returning Cannot read property "length" of undefined during a simple npm install.

@Grimler91
Copy link
Member

See for example #1798, you need to edit $PREFIX/lib/node_modules/npm/node_modules/worker-farm/lib/farm.js and set maxConcurrentWorkers to the number of cpu cores (or 1)

@termux termux locked and limited conversation to collaborators Oct 9, 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

2 participants