Ionic 3 Project没有config.xml [英] Ionic 3 Project does not have config.xml

查看:297
本文介绍了Ionic 3 Project没有config.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试遵循本教程: https://www.youtube.com/watch? v = SOOjamH1bAA . 但是我什至无法开始,因为从外观上看,我的项目没有config.xml文件,我尝试在线查找文档,但它什么也没说,我还尝试搜索如何生成它,没有找到任何东西,为什么我缺少此config.xml?如何生成这个文件?这是一个链接,用于显示其应该位于的位置,而该位置不存在:

I was trying to follow this tutorial: https://www.youtube.com/watch?v=SOOjamH1bAA. But I couldn't even begin, because from what it looks like, my project does not have a config.xml file and I tried looking up the documentation online, and it says nothing about it, I also tried searching how to generate it, didn't find anything, why am I missing this config.xml? how to generate this file? Here's a link to display where its supposed to be, and it's not there:

以下是离子信息输出:

Ionic: ionic (Ionic CLI) : 4.1.1 (C:\Users\Publio\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.1.11 System: NodeJS : v8.11.3 (C:\Program Files\nodejs\node.exe) npm : 6.3.0 OS : Windows 10

推荐答案

从ionic cli v4开始,如果要创建离子cordova应用程序,则需要将cordova设置为离子应用程序. config.xml由cordova平台使用.

From ionic cli v4, you need to set cordova to your ionic app if you are creating an ionic cordova application. config.xml is used by cordova platform.

根据文档,您也可以在创建应用后启用集成.

You can enable the integration after creating the app as well according to documentation.

ionic integrations enable cordova

这篇关于Ionic 3 Project没有config.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆