Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于开发环境编译后会出现内存过大超出的问题 #74

Open
SongChao1123 opened this issue Mar 12, 2018 · 4 comments
Open

Comments

@SongChao1123
Copy link

项目越来越大了 ,在使用 npm run dev 的环境编译后会内存过大溢出的情况,本人更换了各种npm和网站的相关配置,但并无效果,求作者解答一下

@bluefox1688
Copy link
Owner

你的包大概有多大了?

@SongChao1123
Copy link
Author

打包后dist目录有8MB多 ,感觉并没有很大的

@SongChao1123
Copy link
Author

<--- Last few GCs --->

1333993 ms: Mark-sweep 685.4 (702.4) -> 684.0 (702.4) MB, 80.8 / 0.0 ms [allocation failure] [GC in old space requested].
1334069 ms: Mark-sweep 684.0 (702.4) -> 683.9 (702.4) MB, 76.1 / 0.0 ms [allocation failure] [GC in old space requested].
1334143 ms: Mark-sweep 683.9 (702.4) -> 685.7 (701.4) MB, 74.2 / 0.0 ms [last resort gc].
1334219 ms: Mark-sweep 685.7 (701.4) -> 687.3 (701.4) MB, 75.8 / 0.0 ms [last resort gc].

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0C07B815
2: new constructor(aka ValueParser) [E:\wg_gamelive_m_view\node_modules\postcss-value-parser\lib\index.js:7] [pc=3B697794] (this=115FF115 <a ValueParser with map 22889921>,value=068CBFD5 <String[52]: linear-gradient(to right, #7947f7, #b029fd, #883bfc)>)
4: ValueParser [E:\wg_gamelive_m_view\node_modules\postcss-value-parser\lib\index.js:10] [pc=3B6977F3] (this=0C08A389 ,val...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
npm ERR! code ELIFECYCLE
npm ERR! errno 3
npm ERR! [email protected] dev: node build/dev-server.js
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\IGG\AppData\Roaming\npm-cache_logs\2018-03-26T01_43_28_787Z-debug.log

@SongChao1123
Copy link
Author

一直无解,查了很多资料 悲剧 , 求作者解答一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants