I am working with Next.js but after work sometimes I face this problem. Can't run my project.
Asked
Active
Viewed 243 times
-1
juliomalves
- 21,997
- 12
- 75
- 81
Abdur Rahman
- 1
- 1
-
3Does this answer your question? [How to fix "FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory" error](https://stackoverflow.com/questions/55613789/how-to-fix-fatal-error-ineffective-mark-compacts-near-heap-limit-allocation-fa) – Aahan Agarwal Oct 05 '21 at 13:16
1 Answers
0
- You need to install the latest Node version or use a Node Version Manager to switch to the version you want.
- If you use Maven plugin you need in your pom.xml to change the node_version to the version you use and re-run again deploy command you are using. Example of the pom.xml lines you need to change:
<configuration> <nodeVersion>v16.11.1</nodeVersion> <npmVersion>6.9.0</npmVersion> </configuration>
Dharman
- 26,923
- 21
- 73
- 125
Marko Sikman
- 236
- 2
- 7