-
使用github action 部署时,编译总是报错 FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory 我的valaxy版本是 这是我的yml配置文件 build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- name: 📦 Install Dependencies
run: npm i
- name: Set NODE_OPTIONS
run: export NODE_OPTIONS="--max_old_space_size=10240"
- name: 🌌 Build Valaxy Blog
run: npm run build 这是具体的报错信息
|
Beta Was this translation helpful? Give feedback.
Answered by
dbinfun
Mar 5, 2024
Replies: 2 comments 2 replies
-
看起来使用了更多的内存,我会在之后排查。 是否可能通过设置更大的 - name: Set NODE_OPTIONS
run: export NODE_OPTIONS="--max_old_space_size=10240" |
Beta Was this translation helpful? Give feedback.
2 replies
-
升级到目前的最新版本 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dbinfun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
升级到目前的最新版本
0.18.5
,问题已解决。