Skip to content

怎么在本地运行? #6

Description

@alextangchao

我把游戏里data/base里的文件复制到quantorio/data/base底下,然后在quantorio目录下运行

npm install
npm run dev

然后出来这个报错信息

D:\github\quantorio>npm run dev

> quantorio@1.0.0 dev D:\github\quantorio
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

 92% chunk asset optimization
<--- Last few GCs --->

[7332:0000021F6A1FDFB0]    37207 ms: Mark-sweep 1398.3 (1441.0) -> 1398.3 (1444.5) MB, 89.5 / 0.0 ms  (average mu = 0.178, current mu = 0.092) allocation failure scavenge might not succeed
[7332:0000021F6A1FDFB0]    37304 ms: Mark-sweep 1401.9 (1444.5) -> 1402.0 (1444.5) MB, 91.0 / 0.0 ms  (average mu = 0.122, current mu = 0.060) allocation failure scavenge might not succeed


<--- JS stacktrace --->

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

Security context: 0x021d7b79e6e1 <JSObject>
    0: builtin exit frame: stringify(this=0x021d7b791a19 <Object map = 0000000671F042A9>,0x0155d01826f1 <undefined>,0x0155d01826f1 <undefined>,0x02e5df602229 <Object map = 00000370524AF801>,0x021d7b791a19 <Object map = 0000000671F042A9>)

    1: arguments adaptor frame: 1->3
    2: /* anonymous */(aka /* anonymous */) [0000008C6D8FFB71] [D:\github\quantorio\node_modules\webpack\lib\SourceMapDevT...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 00007FF79079ECE5
 2: 00007FF790778196
 3: 00007FF790778BA0
 4: 00007FF790A08D5E
 5: 00007FF790A08C8F
 6: 00007FF790F469D4
 7: 00007FF790F3D137
 8: 00007FF790F3B6AC
 9: 00007FF790F44627
10: 00007FF790F446A6
11: 00007FF790AE73EB
12: 00007FF790AE9EED
13: 00007FF790BCA87B
14: 00007FF790F0E7EF
15: 00007FF790F0A92E
16: 00007FF790F09A8C
17: 00007FF790F0D9AB
18: 00007FF790F0AC3D
19: 00007FF790F07C5C
20: 00007FF790BD76D6
21: 00007FF790BD75CB
22: 000000F68365C721
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! quantorio@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the quantorio@1.0.0 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\Alex\AppData\Roaming\npm-cache\_logs\2019-02-28T05_16_00_181Z-debug.log

应该怎样做才能在本地运行根据自己游戏数据的计算?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions