我只是不知道如何解决这个问题。我尝试了很多解决方案,但对我的情况没有任何作用。所以我将我的项目放入xampp\htdocs
文件夹名称中exam-ionic
。
然后当我尝试添加平台 android 时出现错误
Error: ENOENT: no such file or directory,
open 'c:\xampp\htdocs\exam-ionic\android\package.json'] {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'c:/xampp/htdocs/exam-ionic/android/package.json
Run Code Online (Sandbox Code Playgroud)
这是我跑步的时候ionic cordova platform add android --verbose
ionic:utils-process onBeforeExit handler: 'process.exit' received +0ms
ionic:utils-process onBeforeExit handler: running 1 functions +2ms
ionic:utils-process error while killing process tree for 6724: Error: Command
failed: taskkill /pid
6724 /T /F
ionic:utils-process ERROR: The process "6724" not found.
ionic:utils-process
ionic:utils-process at ChildProcess.exithandler (child_process.js:308:12)
ionic:utils-process at ChildProcess.emit (events.js:315:20)
ionic:utils-process at …
Run Code Online (Sandbox Code Playgroud)