node.js - 节点/反应启动问题
问题描述
当我发出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 ]
解决方案
推荐阅读
- mysql - 很难根据允许的最大连接数正确设置 RAILS_MAX_THREADS
- shopware - 如何在 Shopware 5 的 Enlight_Event_EventArgs 对象订阅者中执行重定向?
- javascript - 限制 Loopback 4 查询中属性的长度数组类型?
- python - 以数字方式查找正根
- c++ - 如何使用移动构造函数释放内存
- postgresql - Postgresql 9.3 忽略 pgpass.conf 文件
- python - 有错误的 Holoviews 条返回 TypeError:不支持的操作数类型 -:'str' 和 'float'
- amazon-web-services - ELB 后面的单个 EC2 会产生巨大的延迟
- python - 如何使用 Python 将音频文件(.mp3 或 .wav 或任何其他文件)转换为唯一的音频 ID?
- spring - 如何获取 Spring REST URL 的请求参数的名称?