首页 > 解决方案 > 节点/反应启动问题

问题描述

当我发出npm start. 有谁知道如何解决这个问题?我是节点新手并做出反应。看来问题可能是由于我的 package.json 文件。

11 silly lifecycle myreact@1.0.0~start: Returned: code: 1  signal: null
12 info lifecycle myreact@1.0.0~start: Failed to exec start script
13 verbose stack Error: myreact@1.0.0 start: `npm run clean && npm run webpack && concurrently "npm run webpack:w"  "npm run web" "npm run rest"`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:285:16)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at EventEmitter.emit (events.js:214:7)
13 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at ChildProcess.emit (events.js:214:7)
13 verbose stack     at maybeClose (internal/child_process.js:925:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid myreact@1.0.0
15 verbose cwd C:\Users\am\Documents\myreact
16 verbose Windows_NT 10.0.16299
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
18 verbose node v8.11.3
19 verbose npm  v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error myreact@1.0.0 start: `npm run clean && npm run webpack && concurrently "npm run webpack:w"  "npm run web" "npm run rest"`
22 error Exit status 1
23 error Failed at the myreact@1.0.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

标签: node.jsreactjstypescript

解决方案


推荐阅读