小编ofa*_*vre的帖子

错误:ENOENT:运行 Ionic Cordova 平台添加 Android 时没有此类文件或目录

我只是不知道如何解决这个问题。我尝试了很多解决方案,但对我的情况没有任何作用。所以我将我的项目放入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)

android cordova ionic-framework wonderpush ionic5

13
推荐指数
1
解决办法
2万
查看次数

标签 统计

android ×1

cordova ×1

ionic-framework ×1

ionic5 ×1

wonderpush ×1