yarnpkg/yarn

yarn add webpack produces javascript heap out of memory

Open

#6,511 创建于 2018年10月6日

在 GitHub 查看
 (1 评论) (1 反应) (0 负责人)JavaScript (41,514 star) (2,731 fork)batch import
help wanted

描述

Do you want to request a feature or report a bug?

Bug What is the current behavior? yarn produces javascript heap out of memory issue when upgrading to webpack@4.20.2 particularly. I have not found it to be an issue when upgrading other packages.

further investigation shows that anything beyond 4.5.0 have this out of memory issue. I was able to successfully install webpack@4.5.0

If the current behavior is a bug, please provide the steps to reproduce.

git clone https://github.com/fobbyal/yarn-install-mem-heap-issue.git
yarn install
yarn add webpack@4.20.2

What is the expected behavior? yarn installs the webpack@4.20.2 succssfully.

Please mention your node.js, yarn and operating system version. yarn@1.10.1 node@8.10.0 on OSX and node@8.12.0 on arch linux

贡献者指南