Commit dbc09f8a authored by superman's avatar superman

使用pm2 start

parent fe53eda3
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/lib/node_modules/npm/bin/npm-cli.js',
1 verbose cli 'run-script',
1 verbose cli 'start' ]
2 info using npm@3.8.3
3 info using node@v5.10.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle www.fudou6.com@0.0.0~prestart: www.fudou6.com@0.0.0
6 silly lifecycle www.fudou6.com@0.0.0~prestart: no script for prestart, continuing
7 info lifecycle www.fudou6.com@0.0.0~start: www.fudou6.com@0.0.0
8 verbose lifecycle www.fudou6.com@0.0.0~start: unsafe-perm in lifecycle true
9 verbose lifecycle www.fudou6.com@0.0.0~start: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/superman/Works/www.fudou6.com/node_modules/.bin:/usr/local/bin:/Users/superman/.sdkman/candidates/groovy/current/bin:/Users/superman/.sdkman/candidates/gradle/current/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
10 verbose lifecycle www.fudou6.com@0.0.0~start: CWD: /Users/superman/Works/www.fudou6.com
11 silly lifecycle www.fudou6.com@0.0.0~start: Args: [ '-c', 'node --harmony ./bin/www' ]
12 silly lifecycle www.fudou6.com@0.0.0~start: Returned: code: 1 signal: null
13 info lifecycle www.fudou6.com@0.0.0~start: Failed to exec start script
14 verbose stack Error: www.fudou6.com@0.0.0 start: `node --harmony ./bin/www`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:239:16)
14 verbose stack at emitTwo (events.js:100:13)
14 verbose stack at EventEmitter.emit (events.js:185:7)
14 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
14 verbose stack at emitTwo (events.js:100:13)
14 verbose stack at ChildProcess.emit (events.js:185:7)
14 verbose stack at maybeClose (internal/child_process.js:850:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
15 verbose pkgid www.fudou6.com@0.0.0
16 verbose cwd /Users/superman/Works/www.fudou6.com
17 error Darwin 15.6.0
18 error argv "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/bin/npm-cli.js" "run-script" "start"
19 error node v5.10.1
20 error npm v3.8.3
21 error code ELIFECYCLE
22 error www.fudou6.com@0.0.0 start: `node --harmony ./bin/www`
22 error Exit status 1
23 error Failed at the www.fudou6.com@0.0.0 start script 'node --harmony ./bin/www'.
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 www.fudou6.com package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error node --harmony ./bin/www
23 error You can get information on how to open an issue for this project with:
23 error npm bugs www.fudou6.com
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls www.fudou6.com
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
......@@ -3,7 +3,9 @@
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node --harmony ./bin/www"
"start": "pm2 start ./bin/www --name=www.fudou6.com",
"stop": "pm2 stop www.fudou6.com",
"restart": "pm2 restart www.fudou6.com"
},
"dependencies": {
"babel-plugin-transform-es2015-sticky-regex": "^6.8.0",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment