[英]Couldn't find ionic.config.json file
when i run ionic build android
当我运行
ionic build android
i get this error - 我收到此错误 -
Couldn't find ionic.config.json file. Are you in an Ionic project?
And i am in the project folder.. 我在项目文件夹中..
Anyone please? 有人请?
Go to ionic.io to create a new app. 转到ionic.io创建一个新的应用程序。 Then create ionic.config.json file in your app's root folder with content like
然后在app的根文件夹中创建具有类似内容的ionic.config.json文件
{
"name": "your_app_name",
"app_id": "your_app_id"
}
Then run the command "ionic build android", it should work. 然后运行命令“ionic build android”,它应该工作。
After the recent update to the ionic-cli look for a file, 最近更新离子cli后找一个文件,
so just rename the file named ionic.project
to ionic.config.json
所以只需将名为
ionic.project
的文件重命名为ionic.config.json
I had the same problem once, all what I've come up with, is to create a new project, then replace the www folder with my own one, add all plugins. 我曾经遇到过同样的问题,我所提出的就是创建一个新项目,然后用我自己的项目替换www文件夹,添加所有插件。 seems to fix the problem.
似乎解决了这个问题。
For me, After created the project using this command : ionic start alertDialog blank --v2
.New project was created. 对我来说,使用此命令创建项目后:
ionic start alertDialog blank --v2
。已创建新项目。
first of all check whether you have ionic.config.json file is available in that project folder.But what is the issue means, I had already create one alertDialog folder before running the command.So the directory would be MyIonic2-> alertDialog -> alertDialog.
首先检查你是否在该项目文件夹中有ionic.config.json文件。但问题是什么意思,我在运行命令之前已经创建了一个alertDialog文件夹。所以该目录将是
MyIonic2-> alertDialog -> alertDialog.
So I removed one folder alertDialog. 所以我删除了一个文件夹alertDialog。 Now it would be
MyIonic2 -> alertDialog
fixed my issue. 现在它将是
MyIonic2 -> alertDialog
解决了我的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.