• nodejs内存溢出


    npm-v 报错,错误信息如下:

    FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
    1: 000000013FC5ECE5
    2: 000000013FC38196
    3: 000000013FC38BA0
    4: 000000013FEC8D5E
    5: 000000013FEC8C8F
    6: 00000001404069D4
    7: 00000001403FD137
    8: 00000001403FB6AC
    9: 0000000140404627
    10: 00000001404046A6
    11: 000000013FFA73EB
    12: 000000013FFA9DAD
    13: 000000013FFA8EC6
    14: 000000013FFA8FBA
    15: 000000013FC4F224
    16: 000000013FC4F71C
    17: 000000013FBF7271
    18: 000000013FCA76B7
    19: 000000013FCA3194
    20: 000000013FCA3DA3
    21: 000000013FC3F71E
    22: 000000013FC40005
    23: 000000013FC408F1
    24: 000000013FAE96F9
    25: 00000001406D5DC8
    26: 00000000774A59CD
    27: 000000007770383D

    <--- Last few GCs --->

    [6088:00000000005BA500] 41296 ms: Scavenge 1395.0 (1425.2) -> 1394.2 (1425.7) MB, 3.3 / 0.0 ms (average mu = 0.085, current mu = 0.037) allocation failure
    [6088:00000000005BA500] 41314 ms: Scavenge 1395.4 (1425.7) -> 1394.8 (1426.7) MB, 3.9 / 0.0 ms (average mu = 0.085, current mu = 0.037) allocation failure
    [6088:00000000005BA500] 41332 ms: Scavenge 1396.1 (1426.7) -> 1395.5 (1431.7) MB, 4.2 / 0.0 ms (average mu = 0.085, current mu = 0.037) allocation failure


    <--- JS stacktrace --->

    FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

     经过搜索,最后的解决方案是删除npmrc文件(不是nodejs安装目录npm模块下的那个npmrc文件,而是C:Users{账户}下的.npmrc文件)。

  • 相关阅读:
    ZOJ2334 Monkey King 并查集 STL
    ZOJ2286 Sum of Divisors 筛选式打表
    ZOJ2105 终于找到错误
    ZOJ-2091-Mean of Subsequence (反证法的运用!!)
    【9929】潜水员
    【9928】混合背包
    【t077】宝物筛选
    【9927】庆功会
    【9926】完全背包
    【9925】0/1背包
  • 原文地址:https://www.cnblogs.com/yangjing1314/p/9993835.html
Copyright © 2020-2023  润新知