{"action":"closed","issue":{"url":"https://api.github.com/repos/lerna/lerna/issues/1798","repository_url":"https://api.github.com/repos/lerna/lerna","labels_url":"https://api.github.com/repos/lerna/lerna/issues/1798/labels{/name}","comments_url":"https://api.github.com/repos/lerna/lerna/issues/1798/comments","events_url":"https://api.github.com/repos/lerna/lerna/issues/1798/events","html_url":"https://github.com/lerna/lerna/issues/1798","id":385313692,"node_id":"MDU6SXNzdWUzODUzMTM2OTI=","number":1798,"title":"lerna bootstrap consume huge memory","user":{"login":"kyasbal-1994","id":6434708,"node_id":"MDQ6VXNlcjY0MzQ3MDg=","avatar_url":"https://avatars2.githubusercontent.com/u/6434708?v=4","gravatar_id":"","url":"https://api.github.com/users/kyasbal-1994","html_url":"https://github.com/kyasbal-1994","followers_url":"https://api.github.com/users/kyasbal-1994/followers","following_url":"https://api.github.com/users/kyasbal-1994/following{/other_user}","gists_url":"https://api.github.com/users/kyasbal-1994/gists{/gist_id}","starred_url":"https://api.github.com/users/kyasbal-1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyasbal-1994/subscriptions","organizations_url":"https://api.github.com/users/kyasbal-1994/orgs","repos_url":"https://api.github.com/users/kyasbal-1994/repos","events_url":"https://api.github.com/users/kyasbal-1994/events{/privacy}","received_events_url":"https://api.github.com/users/kyasbal-1994/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-11-28T15:12:00Z","updated_at":"2018-12-01T10:32:45Z","closed_at":"2018-12-01T10:32:45Z","author_association":"NONE","body":"<!--- Provide a general summary of the issue in the Title above -->\r\nI'm trying to execute `npx lerna bootstrap` on my CI environment in CircleCI.\r\nI have an error of out of memory error in the bootstrap.\r\n\r\n```\r\n#!/bin/bash -eo pipefail\r\nnpx lerna bootstrap\r\nlerna notice cli v3.5.0\r\nlerna info Bootstrapping 5 packages\r\nlerna info Installing external dependencies\r\nlerna ERR! npm ci exited 1 in '@XXX/api-schema'\r\nlerna ERR! npm ci stderr:\r\nWARN tar ENOMEM: not enough memory, write\r\nWARN tar ENOMEM: not enough memory, write\r\nWARN tar ENOMEM: not enough memory, write\r\nWARN tar ENOMEM: not enough memory, write\r\nWARN tar ENOMEM: not enough memory, write\r\nWARN tar ENOMEM: not enough memory, write\r\nWARN tar ENOMEM: not enough memory, write\r\nWARN tar ENOMEM: not enough memory, write\r\nWARN tar ENOMEM: not enough memory, write\r\nWARN tar ENOMEM: not enough memory, write\r\nWARN tar ENOMEM: not enough memory, write\r\nnpm ERR! Unexpected end of JSON input\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /home/circleci/.npm/_logs/2018-11-28T15_04_10_320Z-debug.log\r\n\r\nlerna ERR! npm ci exited 1 in '@XXX/api-schema'\r\nlerna WARN complete Waiting for 3 child processes to exit. CTRL-C to exit immediately.\r\nExited with code 1\r\n```\r\n\r\nI think lerna execute several install command in parallel. Then that fails the problem.\r\nIs there any way to solve this?\r\n\r\n\r\n## Expected Behavior\r\n<!--- If you're describing a bug, tell us what should happen -->\r\n<!--- If you're suggesting a change/improvement, tell us how it should work -->\r\n\r\nRational memory consume\r\n\r\n## Current Behavior\r\n<!--- If describing a bug, tell us what happens instead of the expected behavior -->\r\n<!--- If suggesting a change/improvement, explain the difference from current behavior -->\r\n\r\nHuge memory consume preventing complete bootstrap\r\n\r\n## Possible Solution\r\n<!--- Not obligatory, but suggest a fix/reason for the bug, -->\r\n<!--- or ideas how to implement the addition or change -->\r\n\r\nI don't know at this time.\r\n\r\n## Steps to Reproduce (for bugs)\r\n<!--- Provide a link to a live example, or an unambiguous set of steps to -->\r\n<!--- reproduce this bug. Include code to reproduce, if relevant -->\r\n1. Make a repository with lerna have 5 or more projects\r\n2. Install mandatory tools such as webpack babel ...etc\r\n3. CI will fail by memory error\r\n\r\n\r\n<details><summary>lerna.json</summary><p>\r\n<!-- browsers demand the next line be empty -->\r\n\r\n```json\r\n<!-- Please paste your `lerna.json` here -->\r\n{\r\n  \"packages\": [\r\n    \"packages/*\"\r\n  ],\r\n  \"version\": \"0.0.0\"\r\n}\r\n\r\n```\r\n</p></details>\r\n\r\n<details><summary>lerna-debug.log</summary><p>\r\n<!-- browsers demand the next line be empty -->\r\n\r\n```txt\r\n<!-- If you have a `lerna-debug.log` available, please paste it here -->\r\n<!-- Otherwise, feel free to delete this <details> block -->\r\n```\r\n</p></details>\r\n\r\n## Context\r\n<!--- How has this issue affected you? What are you trying to accomplish? -->\r\n<!--- Providing context helps us come up with a solution that is most useful in the real world -->\r\n\r\n## Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n\r\n| Executable | Version |\r\n| ---: | :--- |\r\n| `lerna --version` | 3.4.3 |\r\n| `npm --version`  | ? |\r\n| `node --version` | 8 |\r\n\r\n| OS | Version |\r\n| --- | --- |\r\n| NAME | VERSION |\r\n|CircleCI ubuntu instance| Unknown|\r\n"}}
{"actor":{"display_login":"kyasbal-1994"}}