Skip to content

Javascript heap out of memory #938

Description

@valotas

pnpm version

1.21.0

Code to reproduce the issue:

$ pnpm install

Expected behavior:

install modules

Actual behavior:

PS C:\dev\Projects\xxx> pnpm.cmd install
 WARN  mochify > watchify > chokidar: Skipping failed optional dependency fsevents@1.1.3
Resolving: total 818, reused 462, downloaded 114

<--- Last few GCs --->

   30372 ms: Mark-sweep 1359.3 (1436.5) -> 1357.8 (1436.5) MB, 792.2 / 0.0 ms [allocation failure] [GC in old space requested].
   31150 ms: Mark-sweep 1357.8 (1436.5) -> 1357.8 (1436.5) MB, 777.1 / 0.0 ms [allocation failure] [GC in old space requested].
   31976 ms: Mark-sweep 1357.8 (1436.5) -> 1363.6 (1412.5) MB, 825.9 / 0.0 ms [last resort gc].
   32797 ms: Mark-sweep 1363.6 (1412.5) -> 1369.4 (1412.5) MB, 821.3 / 0.0 ms [last resort gc].


<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 000003D1608CFB61 <JS Object>
    1: buildTree(aka buildTree) [C:\dev\global_node_modules\pnpm-global\1\node_modules\.my.domain.com+8000\supi\0.7.5\@pnpm!logger@1.0.0\node_modules\supi\lib\api\install.js:471] [pc=00000223B3618147] (this=000003D160804381 <undefined>,ctx=00000222730E6841 <an Object with map 0000026388CC0179>,parentNodeId=00000071888F76D9 <String[628]: :/:my.domain.com+8000/fx-entry/5...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

Additional information:

  • node -v prints: v6.9.5
  • Windows 7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions