JavaScript heap out of memory
See original GitHub issueDo you want to request a feature or report a bug?
bug
What is the current behavior?
JavaScript heap out of memory
If the current behavior is a bug, please provide the steps to reproduce.
when I run yarn install
, it throwed error for JavaScript heap out of memory
.After I delete about six dependencies,i runed steps followed below:
-
run
yarn cache clean
-
delete folder
node_modules
-
run
yarn install
again
Everythings ok.So I think the reason maybe amount of the dependencies beyond the limit
What is the expected behavior?
If this is a feature request, what is motivation or use case for changing the behavior?
Local Environment Information
If this issue is specific to the CLI, provide the results of running npx envinfo
from the command line in a GitHub gist.
Node: 10.16.0
Yarn: 1.16.0
Issue Analytics
- State:
- Created 4 years ago
- Reactions:18
- Comments:6 (2 by maintainers)
Top GitHub Comments
me too. I guess the repo is now too big
node --max-old-space-size=10000 /c/npmprefix/node_modules/flow-typed/dist/cli.js
(or similiar, depending on where your npm prefix is)flow-typed update
andflow-typed install
failed and ran out of memory.NODE_OPTIONS=--max_old_space_size=10000 flow-typed update
Worked for me.