简体   繁体   English

Sencha Touch包构建返回“必须从包文件夹运行”

[英]Sencha Touch package build returns “must be run from package folder”

I'm very new to Sencha, and app development as a whole. 我对Sencha和整个app开发都很新。 I've followed the instructions here: http://docs.sencha.com/touch/2-1/#!/guide/getting_started and here: http://docs.sencha.com/touch/2-1/#!/guide/native_packaging-section-7 and I'm trying to use this command to package this for testing on my android device: 我按照这里的说明操作: http//docs.sencha.com/touch/2-1/#!/guide / getting_started和这里: http//docs.sencha.com/touch/2-1/# !/ guide / native_packaging-section-7我正在尝试使用此命令将其打包以在我的Android设备上进行测试:

sencha package build packager.json

I get this result: 我得到这个结果:

[ERR] Command must be run from a package folder

I feel sure that I've done everything correctly, despite the instructions being very wrong in certain places in the documentation for Sencha. 我确信我已经完成了所有事情,尽管Sencha文档中的某些地方的说明非常错误。 It doesn't seem to matter where I try to run this command from, it doesn't work. 在我尝试运行此命令的位置似乎并不重要,它不起作用。 I'm running it from the app directory. 我正在从app目录运行它。

Did I miss a step somewhere? 我错过了某个地方吗? Where is this mythical package folder where this command will run? 这个命令运行的神秘包文件夹在哪里?

I'm getting started with Sencha and I had the same problem. 我开始使用Sencha,我遇到了同样的问题。 The correct command is: 正确的命令是:

sencha app package build packager.json

(notice the app keyword missing) (注意app关键字缺失)

Hope it helps! 希望能帮助到你!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM