[Solved] NPM Error: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed

Problem Description:

Resolve NPM exception: fatal error: ineffective mark compacts near heap limit allocation failed

Solution:

1. Delete the. Npmrc file under C:\users {account}\.
2. Clean it directly with the command. Enter
NPM cache clean – force
3 on the CMD console, or clean it directly with the command. Enter cnpm install – G increase memory limit on the CMD console, and then increase memory limit


when running the Vue project, no error will be reported

Read More: