A recent VUE project has reported errors at intervals in the development phase
in the same project, many people collaborate, and others do not report errors.
my computer i8 8g memory WIN10
NODE version has tried 6.x 8.11.1 (latest) 8.0.0 (colleague WINDOWS notebook version with normal 4G memory)
I have tried to reinstall NODE,NPM, reinstall dependence, etc. All have this problem.
other people have WINDOWS and the one with the least MAC, memory, even the laptop with only 4G memory. Preliminary troubleshooting of hardware / node version / NPM version
ask for an answer from a superior person
the console output code is as follows
<--- Last few GCs --->
[19604:0000025FC6C970F0] 6135062 ms: Mark-sweep 1363.9 (1425.9) -> 1363.7 (1420.9) MB, 121.1 / 0.1 ms allocation failure GC in old space requested
[19604:0000025FC6C970F0] 6135194 ms: Mark-sweep 1363.7 (1420.9) -> 1363.6 (1387.4) MB, 132.0 / 0.1 ms last resort GC in old space
requested
[19604:0000025FC6C970F0] 6135312 ms: Mark-sweep 1363.6 (1387.4) -> 1363.6 (1387.4) MB, 118.0 / 0.0 ms last resort GC in old space
requested
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 00000190519A57C1 <JSObject>
1: fromString(aka fromString) [buffer.js:314] [bytecode=0000019E30447AF1 offset=164](this=000002EA755822D1 <undefined>,string=000000F1B1DB9CD9 <Very long string[13466822]>,encoding=00000190519B4EB1 <String[4]: utf8>)
2: from [buffer.js:177] [bytecode=0000019E304475F9 offset=11](this=0000001220C362D9 <JSFunction Buffer (sfi = 00000190519FB6C9)>,value=000000F1B1DB9CD9 <Very long string[1...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
][2]
error log is as follows
0 info it worked if it ends with ok
1 verbose cli [ "C:\\Program Files\\nodejs\\node.exe",
1 verbose cli "C:\\Users\\53881\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js",
1 verbose cli "run",
1 verbose cli "dev" ]
2 info using npm@5.8.0
3 info using node@v8.11.1
4 verbose run-script [ "predev", "dev", "postdev" ]
5 info lifecycle base-vue@1.0.0~predev: base-vue@1.0.0
6 info lifecycle base-vue@1.0.0~dev: base-vue@1.0.0
7 verbose lifecycle base-vue@1.0.0~dev: unsafe-perm in lifecycle true
8 verbose lifecycle base-vue@1.0.0~dev: PATH: C:\Users\53881\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\project\**\**\**\**\node_modules\.bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\53881\bin;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Git\cmd;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\startMenu;C:\Program Files\nodejs;C:\Users\53881\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Users\53881\AppData\Roaming\npm
9 verbose lifecycle base-vue@1.0.0~dev: CWD: C:\project\**\**\**\**
10 silly lifecycle base-vue@1.0.0~dev: Args: [ "/d /s /c", "node build/dev-server.js" ]
11 silly lifecycle base-vue@1.0.0~dev: Returned: code: 3 signal: null
12 info lifecycle base-vue@1.0.0~dev: Failed to exec dev script
13 verbose stack Error: base-vue@1.0.0 dev: `node build/dev-server.js`
13 verbose stack Exit status 3
13 verbose stack at EventEmitter.<anonymous> (C:\Users\53881\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:283:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess.<anonymous> (C:\Users\53881\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:925:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid base-vue@1.0.0
15 verbose cwd C:\project\**\**\**\**
16 verbose Windows_NT 10.0.16299
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\53881\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
18 verbose node v8.11.1
19 verbose npm v5.8.0
20 error code ELIFECYCLE
21 error errno 3
22 error base-vue@1.0.0 dev: `node build/dev-server.js`
22 error Exit status 3
23 error Failed at the base-vue@1.0.0 dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 3, true ]