npm / cli

the package manager for JavaScript
https://docs.npmjs.com/cli/
Other
8.44k stars 3.14k forks source link

[BUG] React installation fails with npx #4007

Closed RoyGalaxy closed 2 years ago

RoyGalaxy commented 2 years ago

Is there an existing issue for this?

This issue exists in the latest npm version

Current Behavior

I have been trying to react with npx v8.1.0 but it fails you can see the error message. Kindly provide me with the solution ASAP. Screenshot_20211107-110639_Termux

Expected Behavior

No response

Steps To Reproduce

  1. In this environment...
  2. With this config...
  3. Run '...'
  4. See error...

Environment

wraithgar commented 2 years ago

This error on termux/android typically has to do with the os running out of resources and prematurely killing processes. There is not much npm can do for this environment. We do have plans to try to make npm work better in limited resource environments, but until then you may have to use a system with more memory and/or file handles.