命令“ npm start”上的react-script错误

时间:2019-09-09 06:44:20

标签: node.js npm

运行命令npm start时出现错误。 请帮助我。

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@6.4.1
3 info using node@v10.12.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle demo-chat-app@1.0.0~prestart: demo-chat-app@1.0.0
6 info lifecycle demo-chat-app@1.0.0~start: demo-chat-app@1.0.0
7 verbose lifecycle demo-chat-app@1.0.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle demo-chat-app@1.0.0~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/var/www/html/conversation/demo-chat-app/node_mo$
9 verbose lifecycle demo-chat-app@1.0.0~start: CWD: /var/www/html/conversation/demo-chat-app
10 silly lifecycle demo-chat-app@1.0.0~start: Args: [ '-c', 'react-scripts start' ]
11 info lifecycle demo-chat-app@1.0.0~start: Failed to exec start script
12 verbose stack Error: demo-chat-app@1.0.0 start: `react-scripts start`
12 verbose stack spawn ENOENT
12 verbose stack     at ChildProcess.<anonymous (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
12 verbose stack     at ChildProcess.emit (events.js:182:13)
12 verbose stack     at maybeClose (internal/child_process.js:962:16)
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
13 verbose pkgid demo-chat-app@1.0.0
14 verbose cwd /var/www/html/conversation/demo-chat-app
15 verbose Linux 4.4.0-1087-aws
16 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
17 verbose node v10.12.0
18 verbose npm  v6.4.1
19 error file sh
20 error code ELIFECYCLE
21 error errno ENOENT
22 error syscall spawn
23 error demo-chat-app@1.0.0 start: `react-scripts start`
23 error spawn ENOENT
24 error Failed at the demo-chat-app@1.0.0 start script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]

0 个答案:

没有答案