简体   繁体   English

在Sencha Touch构建命令上发现额外的位置参数包错误

[英]Found extra positional argument package error on Sencha Touch build command

I am using Sencha touch 2.4.2 and Sencha Cmd is 6.0.2. 我正在使用Sencha touch 2.4.2和Sencha Cmd是6.0.2。 I am using command 我正在使用命令

sencha app build package sencha应用程序构建软件包

I am getting following error on build Sencha Cmd v6.0.2.14 我在构建Sencha Cmd v6.0.2.14时遇到以下错误

[ERR] Found extra positional argument package [ERR]找到了额外的位置参数包

This question is already asked on https://de.sencha.com/forum/showthread.php?305473-Error-when-running-sencha-app-build-package&p=1116961&viewfull=1&langid=14 这个问题已经在https://de.sencha.com/forum/showthread.php?305473-Error-when-running-sencha-app-build-package&p=1116961&viewfull=1&langid=14上提出了

But there is no any answer . 但是没有任何答案。

On issuing Below help Command 关于发出以下帮助命令

sencha help app build sencha帮助应用程序构建

lists following 以下列表

sencha app build [production|testing|native|package] sencha app build [生产|测试|本地|包]

I am issuing same command but there is error 我正在发出相同的命令,但是有错误

Any help please . 请帮忙。

Try this, Redirect into your project folder Example: D:\\Test\\CordovaWithSencha\\sencha app build -press enter key. 尝试此操作,重定向到您的项目文件夹中例如: D:\\ Test \\ CordovaWithSencha \\ sencha 应用程序构建-按Enter键。 now your project will build successfully. 现在您的项目将成功构建。 For running your application follow same command as D:\\Test\\CordovaWithSencha\\sencha app run -press enter. 要运行您的应用程序,请遵循与D:\\ Test \\ CordovaWithSencha \\ sencha app run相同的命令-按Enter。

该命令已从“ sencha app build package”更改为“ sencha build package”

You should run it without name first for "sencha app build", then can continue for platforms. 您应该先在“ sencha app build”中运行不带名称的程序,然后才能在平台上继续使用。 I guess it already makes each platforms which mentioned in config file. 我猜它已经使配置文件中提到的每个平台。 So do not need to build each platform. 因此不需要构建每个平台。 just execute sencha app build and emulate it. 只需执行sencha应用程序构建并进行仿真即可。 ;) ;)

Although this question is quite old: 尽管这个问题已经很老了:

options need to come before the environment. 选择需要先于环境。 So: 所以:

sencha app build --destination mydest production

works. 作品。

Its somewhat hidden in the help in the last line: 它在最后一行的帮助中有些隐藏:

Syntax sencha app build [options] [theme|locale|build]... [environment]

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

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