我只是不知道如何解决这个问题。我尝试了很多解决方案,但对我的情况没有任何作用。所以我将我的项目放入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) 我正在尝试使用https://docs.wonderpush.com/docs/mobile-push-notifications-ionic上的文档为 Ionic 设置 Wonderpush 集成
\n说明说要安装插件:
\nionic cordova plugin add wonderpush-cordova-sdk --variable CLIENT_ID=YOUR_CLIENT_ID --variable CLIENT_SECRET=YOUR_CLIENT_SECRET --variable SENDER_ID=YOUR_SENDER
...但由于我的应用程序是电容器应用程序,我必须使用以下命令安装插件:
\nnpm install wonderpush-cordova-sdk
--variable
我可以 \xe2\x80\x99t 弄清楚以这种方式安装插件时如何设置 CLIENT_ID、CLIENT_SECRET 和 SENDER_ID(此命令没有 \xe2\x80\x9c \ xe2\x80\x9d 标志),并且我\xe2\x80\x99m 在我的设备上运行应用程序时出现运行时错误,提示这些变量丢失。你知道我如何填充这些值吗?提前致谢!