[错误:当前工作目录不是基于 Cordova 的项目.] [英] [Error: Current working directory is not a Cordova-based project.]
问题描述
我根据说明创建了一个Phonegap项目,将其签入SVN,签出然后发现我无法再运行构建命令——必须将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屋!