When NPM runs build, an error is reported: fatal error: ineffective mark compacts near heap limit allocation failed. Most of the answers are found on the Internet:
NPM install – G increase memory limit
enter the project directory and execute:
increase memory limit
this configuration is invalid. Then he said he wanted to put node_ Remove the double quotation marks in “XXX” under the modules folder (XXX forgot something). It’s also invalid
the last feasible solution:
open the CMD window and enter the command: setx node_ OPTIONS –max_ old_ space_ size=10240。 Then close the command window and rerun NPM run build. success!!!
Read More:
- Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory
- Solutions to Vue running crash
- Outofmemoryerror: GC overhead limit exceeded solution
- circuit_breaking_exception,“reason“:“[parent] Data too large, data for [<http_request>]
- When websocket transmits JSON text, the parse method reports an error
- Gulp failed to run
- Unexpected token o in JSON at p
- How to solve the problem of Cannot find module’npmlog’ when installing nodejs under Linux
- Vue More than 1 blank line not allowed
- Strange exception 001: invalid or unexpected token
- The Java command could not find or load the main class
- Some mistakes in using NPM
- gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildPr
- error code 11 – Administrative Limit Exceeded
- Error: connect econnreused 0.0.0.0:443 is reported when executing the trunk unbox react
- Error: EPERM: operation not permitted, mkdir ‘D:\nodejs\node_modules\npm\node_cache\_npx‘
- Solving the problem of can’t create temporary directory of CVS under Windows
- NPM installs dependent packages and reports an error node gyp rebuild… Solution
- Convergence warning: lbfgs failed to converge (status=1): Stop: total no. of iterations reached L