首先:我对离子和移动开发完全陌生。
当我尝试使用“ ionic cordova build android”构建我的ionic应用程序时,出现以下错误。不幸的是,某些错误是德语的。我已经用Google搜索了很多,但是没有找到解决方案。有人可以帮我吗?
谢谢!
ionic:utils-process onBeforeExit handler: process.exit received +0ms
ionic:utils-process onBeforeExit handler: running 2 functions +0ms
ionic:utils-process error while killing process tree for 7288: { Error: Command failed: taskkill /pid 7288 /T /F
ionic:utils-process FEHLER: Der Prozess "7288" wurde nicht gefunden.
ionic:utils-process
ionic:utils-process at ChildProcess.exithandler (child_process.js:289:12)
ionic:utils-process at ChildProcess.emit (events.js:182:13)
ionic:utils-process at maybeClose (internal/child_process.js:962:16)
ionic:utils-process at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
ionic:utils-process killed: false,
ionic:utils-process code: 128,
ionic:utils-process signal: null,
ionic:utils-process cmd: 'taskkill /pid 7288 /T /F' } +123ms
ionic:utils-process onBeforeExit handler: error from function: { Error: Command failed: taskkill /pid 7288 /T /F
ionic:utils-process FEHLER: Der Prozess "7288" wurde nicht gefunden.
ionic:utils-process
ionic:utils-process at ChildProcess.exithandler (child_process.js:289:12)
ionic:utils-process at ChildProcess.emit (events.js:182:13)
ionic:utils-process at maybeClose (internal/child_process.js:962:16)
ionic:utils-process at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
ionic:utils-process killed: false,
ionic:utils-process code: 128,
ionic:utils-process signal: null,
ionic:utils-process cmd: 'taskkill /pid 7288 /T /F' } +2ms
ionic:utils-process error while killing process tree for 9384: { Error: Command failed: taskkill /pid 9384 /T /F
ionic:utils-process FEHLER: Der Prozess "9384" wurde nicht gefunden.
ionic:utils-process
ionic:utils-process at ChildProcess.exithandler (child_process.js:289:12)
ionic:utils-process at ChildProcess.emit (events.js:182:13)
ionic:utils-process at maybeClose (internal/child_process.js:962:16)
ionic:utils-process at Socket.stream.socket.on (internal/child_process.js:381:11)
ionic:utils-process at Socket.emit (events.js:182:13)
ionic:utils-process at Pipe._handle.close (net.js:606:12)
ionic:utils-process killed: false,
ionic:utils-process code: 128,
ionic:utils-process signal: null,
ionic:utils-process cmd: 'taskkill /pid 9384 /T /F' } +2ms
ionic:utils-process onBeforeExit handler: error from function: { Error: Command failed: taskkill /pid 9384 /T /F
ionic:utils-process FEHLER: Der Prozess "9384" wurde nicht gefunden.
ionic:utils-process
ionic:utils-process at ChildProcess.exithandler (child_process.js:289:12)
ionic:utils-process at ChildProcess.emit (events.js:182:13)
ionic:utils-process at maybeClose (internal/child_process.js:962:16)
ionic:utils-process at Socket.stream.socket.on (internal/child_process.js:381:11)
ionic:utils-process at Socket.emit (events.js:182:13)
ionic:utils-process at Pipe._handle.close (net.js:606:12)
ionic:utils-process killed: false,
ionic:utils-process code: 128,
ionic:utils-process signal: null,
ionic:utils-process cmd: 'taskkill /pid 9384 /T /F' } +2ms
ionic:utils-process onBeforeExit handler: exiting (exit code 1) +1ms
答案 0 :(得分:0)
这是由于系统中有最新版本的ionic和Cordova所致,但是您的项目不支持该版本。尝试卸载cordova,然后安装它。
npm uninstall -g cordova
npm install -g cordova