Solve vue memory overflow error

Solve vue memory overflow error

Insert image description here

1. Memory overflow error occurs when the project is too large and installed globally.

npm install -g increase-memory-limit

2. View the project directory

increase-memory-limit

3. Set the size and execute again

increase-memory-limit 4096mb
npm run serve

4. If it is not completely resolved, continue to read it. If it has been resolved, do not read it.

1> In vscode, click File, click Preferences, click Settings

Insert image description here

2> Search for Exclude in search, find Search Exclude, and delete **/node_modules

Insert image description here

3> Then click Edit, click Replace to replace "%_prog%" with %_prog% (that is, remove the double quotes)

Insert image description here

4> Restart the project to solve the problem!
npm run serve

Guess you like

Origin blog.csdn.net/weixin_53587375/article/details/127532313