小编zuZ*_*Zuu的帖子

Github Actions - 达到堆限制分配失败

Github Action 给出了最后一个“run: npm run build”的错误

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
Error: Process completed with exit code 1.
Run Code Online (Sandbox Code Playgroud)

我的工作流程文件

name: Node.js CI

on:
  push:
    branches: ['master']

jobs:
  build:
    runs-on: self-hosted

    strategy:
      matrix:
        node-version: [16.x]
        # See supported Node.js release schedule at https://nodejs.org/en/about/releases/

    steps:
      - uses: actions/checkout@v3
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v3
        with:
          node-version: ${{ matrix.node-version }}
          cache: 'npm'
      - run: npm i
      - run: npm i
        working-directory: client …
Run Code Online (Sandbox Code Playgroud)

javascript github npm github-actions

7
推荐指数
1
解决办法
9850
查看次数

标签 统计

github ×1

github-actions ×1

javascript ×1

npm ×1