首先:我对离子和移动开发完全陌生。
当我尝试使用“ ionic cordova build android”构建我的ionic应用程序时,出现以下错误。不幸的是,某些错误是德语的。我已经用Google搜索了很多,但是没有找到解决方案。有人可以帮我吗?
我已经尝试过:
npm uninstall -g cordova
npm install -g cordova
谢谢!
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)
这里是同样的问题,在我的计算机上重新安装node.js之后,这会发生在我身上。可能会有帮助。
我找到的唯一解决方案(同时找到真正的解决方案)是使用android-studio打开platform文件夹并在那里运行。但是此过程需要更多时间。