Jhipster the Webpack oldspace FIX

The Error

flux@crispy:~/.npm/_logs$ cat 2017-10-15T15_46_33_885Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/local/bin/node’,
1 verbose cli ‘/usr/local/bin/npm’,
1 verbose cli ‘run’,
1 verbose cli ‘webpack’,
1 verbose cli ‘–‘,
1 verbose cli ‘–config’,
1 verbose cli ‘webpack/webpack.dev.js’,
1 verbose cli ‘–progress’,
1 verbose cli ‘–profile’ ]
2 info using npm@5.4.2
3 info using node@v8.7.0
4 verbose run-script [ ‘prewebpack’, ‘webpack’, ‘postwebpack’ ]


5 info lifecycle chops@0.0.0~prewebpack: chops@0.0.0
6 info lifecycle chops@0.0.0~webpack: chops@0.0.0
7 verbose lifecycle chops@0.0.0~webpack: unsafe-perm in lifecycle true
8 verbose lifecycle chops@0.0.0~webpack: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/home/flux/chops/node_modules/.bin:/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/home/flux/chops/node_modules/.bin:/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/home/flux/chops/node_modules/.bin:/home/flux/.nvm/versions/node/v6.11.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
9 verbose lifecycle chops@0.0.0~webpack: CWD: /home/flux/chops
10 silly lifecycle chops@0.0.0~webpack: Args: [ ‘-c’,
10 silly lifecycle ‘node –max_old_space_size=4096 node_modules/webpack/bin/webpack.js “–config” “webpack/webpack.dev.js” “–progress” “–profile”‘ ]
11 silly lifecycle chops@0.0.0~webpack: Returned: code: 139 signal: null
12 info lifecycle chops@0.0.0~webpack: Failed to exec webpack script
13 verbose stack Error: chops@0.0.0 webpack: `node –max_old_space_size=4096 node_modules/webpack/bin/webpack.js “–config” “webpack/webpack.dev.js” “–progress” “–profile”`
13 verbose stack Exit status 139
13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:280:16)
13 verbose stack at emitTwo (events.js:125:13)
13 verbose stack at EventEmitter.emit (events.js:213:7)
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:125:13)
13 verbose stack at ChildProcess.emit (events.js:213:7)
13 verbose stack at maybeClose (internal/child_process.js:927:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
14 verbose pkgid chops@0.0.0
15 verbose cwd /home/flux/chops
16 verbose Linux 4.9.0-4-686-pae
17 verbose argv “/usr/local/bin/node” “/usr/local/bin/npm” “run” “webpack” “–” “–config” “webpack/webpack.dev.js” “–progress” “–profile”
18 verbose node v8.7.0
19 verbose npm v5.4.2
20 error code ELIFECYCLE
21 error errno 139
22 error chops@0.0.0 webpack: `node –max_old_space_size=4096 node_modules/webpack/bin/webpack.js “–config” “webpack/webpack.dev.js” “–progress” “–profile”`
22 error Exit status 139
23 error Failed at the chops@0.0.0 webpack script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 139, true ]
flux@crispy:~/.npm/_logs$

The Fix

Inside the project folder execute the following:

node –max_old_space_size=4095 node_modules/webpack/bin/webpack.js “–config” “webpack/webpack.dev.js” “–progress” “–profile”

It will finish to compile the webpack files and you will stop seen a blank page at the service URL.

 


Leave a Comment