我试图运行“钛”命令在钛工作室的终端,但它给出以下错误
$ titanium
Titanium Command-Line Interface, CLI version 3.1.1, Titanium SDK version 3.1.1.GA
Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved.
Please report bugs to http://jira.appcelerator.org/
[ERROR] "c:\Users\grant\AppData\Roaming\npm\node_modules\titanium\bin\titanium" is an unrecognized command.
Run node.exe help for available commands.我在Windows7上运行的是Titanium studio。我可以在Windows cmd上成功运行"titanium“命令,它会给出预期的输出。我是个新手,根据我的知识,所有的路径都是正确配置的。我可以在Android模拟器上创建和运行Titanium项目。什么会导致这个错误,请帮助我。提前谢谢你!
发布于 2013-11-08 21:11:20
我今天在这里遇到了同样的情况。经过一些谷歌搜索,我发现这实际上是一个钛工作室的错误。参见this ticket。
在评论中,你可以找到a fix in a Github pull。您可以手动应用修复程序,它应该会起作用(适用于我的Windows7)。
顺便说一句,这个文件位于%appdata%\npm\node_modules\titanium\lib\cli.js,如果你想知道的话。
https://stackoverflow.com/questions/18204469
复制相似问题