pingcap / tidb-vision

TiDB data visualization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

实体机启动失败

tydldd opened this issue · comments

centos7.3
node:8.11
npm5.6

启动命令: export PD_ENDPOINT=10.17.115.7:2379;npm start
报错信息:

npm-run-all -p mock dev

sh: npm-run-all: 未找到命令
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! pd-vis@ start: npm-run-all -p mock dev
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the pd-vis@ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! /home/tidb/.npm/_logs/2018-07-26T05_09_07_415Z-debug.log

完整信息:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using npm@5.6.0
3 info using node@v8.11.3
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle pd-vis@~prestart: pd-vis@
6 info lifecycle pd-vis@~start: pd-vis@
7 verbose lifecycle pd-vis@~start: unsafe-perm in lifecycle true
8 verbose lifecycle pd-vis@~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/tidb/tidb-vision/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
9 verbose lifecycle pd-vis@~start: CWD: /home/tidb/tidb-vision
10 silly lifecycle pd-vis@~start: Args: [ '-c', 'npm-run-all -p mock dev' ]
11 info lifecycle pd-vis@~start: Failed to exec start script
12 verbose stack Error: pd-vis@ start: npm-run-all -p mock dev
12 verbose stack spawn ENOENT
12 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
12 verbose stack at emitTwo (events.js:126:13)
12 verbose stack at ChildProcess.emit (events.js:214:7)
12 verbose stack at maybeClose (internal/child_process.js:925:16)
12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
13 verbose pkgid pd-vis@
14 verbose cwd /home/tidb/tidb-vision
15 verbose Linux 3.10.0-514.el7.x86_64
16 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
17 verbose node v8.11.3
18 verbose npm v5.6.0
19 error file sh
20 error code ELIFECYCLE
21 error errno ENOENT
22 error syscall spawn
23 error pd-vis@ start: npm-run-all -p mock dev
23 error spawn ENOENT
24 error Failed at the pd-vis@ start script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]