Skip to content
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.

npm run deploy high cpu usage #1339

Open
azulkipli opened this issue Dec 13, 2017 · 0 comments
Open

npm run deploy high cpu usage #1339

azulkipli opened this issue Dec 13, 2017 · 0 comments

Comments

@azulkipli
Copy link

azulkipli commented Dec 13, 2017

when executing npm run deploy:prod my server get 98-10% CPU usage
and then build dist failed

https://supload.com/SJaqVNRZf

screen shot 2017-12-13 at 11 29 29

How to solve this ?

here my npm-debug.log

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'run', 'deploy:prod' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predeploy:prod', 'deploy:prod', 'postdeploy:prod' ]
5 info lifecycle [email protected]~predeploy:prod: [email protected]
6 silly lifecycle [email protected]~predeploy:prod: no script for predeploy:prod, continuing
7 info lifecycle [email protected]~deploy:prod: [email protected]
8 verbose lifecycle [email protected]~deploy:prod: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~deploy:prod: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/admin/sepulsa/test-yapulsav2-admin/node_modules/.bin:/usr/local/bin:/usr$
10 verbose lifecycle [email protected]~deploy:prod: CWD: /home/admin/sepulsa/test-yapulsav2-admin
11 silly lifecycle [email protected]~deploy:prod: Args: [ '-c', 'better-npm-run deploy:prod' ]
12 silly lifecycle [email protected]~deploy:prod: Returned: code: 1  signal: null
13 info lifecycle [email protected]~deploy:prod: Failed to exec deploy:prod script
14 verbose stack Error: [email protected] deploy:prod: `better-npm-run deploy:prod`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:891:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid [email protected]
16 verbose cwd /home/admin/sepulsa/test-yapulsav2-admin
17 error Linux 3.16.0-4-amd64
18 error argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "deploy:prod"
19 error node v6.11.2
20 error npm  v3.10.10
21 error code ELIFECYCLE
22 error [email protected] deploy:prod: `better-npm-run deploy:prod`
22 error Exit status 1
23 error Failed at the [email protected] deploy:prod script 'better-npm-run deploy:prod'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the react-redux-starter-kit package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     better-npm-run deploy:prod
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs react-redux-starter-kit
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls react-redux-starter-kit
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant