[错误:当前工作目录不是基于Cordova的项目。] [英] [Error: Current working directory is not a Cordova-based project.]
问题描述
我根据说明创建了一个Phonegap项目,检查它到SVN,检查出来,然后发现我不能再运行build命令 - 需要更改www被复制到每个平台。 Mac OS X中的终端显示此错误:
I created a Phonegap project according to instructions, checked it into SVN, checked it out and then discovered I could no longer run the build command--necessary to have changes to www be replicated to each platform. Terminal in Mac OS X shows this error:
[错误:当前工作目录不是基于Cordova的项目。
[Error: Current working directory is not a Cordova-based project.]
推荐答案
是的,其他人已经说你需要检查您的SVN几个配置文件和文件夹使PhoneGap工作,当你检查出来。这是定义一个PhoneGap项目:
Yes as others have stated already you need to check into your SVN a few config files and folders in order to make PhoneGap work when you check it out. This is what defines a PhoneGap project:
- 有一个.cordova目录,里面有一个config.json。
- 有一个www目录,里面有config.xml。
- 有一个平台目录。
我发现,在那里,你可以使用PhoneGap命令没有问题。如果你需要看到这些配置文件的例子,只需运行 phonegap create myapp
。
I found that with that in place you can use PhoneGap commands without problems. If you need to see an example of those config files, just run phonegap create myapp
.
这篇关于[错误:当前工作目录不是基于Cordova的项目。]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!