zoukankan      html  css  js  c++  java
  • 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文件)。

  • 相关阅读:
    MySQL中的while循环和repeat循环的区别
    Python 基础语法_Python脚本文件结构
    Python 基础语法_Python脚本文件结构
    MySQL存储过程和函数的区别
    第四章 语句和声明
    haproxy 4层和7层负载
    献血是件很赞的事——北漂18年(26)
    JavaScript字符串数值比较问题
    MySQL查看所有可用的字符集
    MySQL获取表格信息
  • 原文地址:https://www.cnblogs.com/yangjing1314/p/9993835.html
Copyright © 2011-2022 走看看