我在我的 Mac 上下载并安装了 Sencha Touch (http://www.sencha.com/products/touch/download/sencha-touch-2.1/)。每当我在终端输入 sencha 命令时,我都会得到:
[WARN] The current working directory (/Users/jmc72) is not a recognized Sencha SDK or application folder. Running in backwards compatible mode.
我试图从不同的目录运行它并且输出是相同的。
我的路径看起来像:
/Applications/SenchaSDKTools:
/Library/Frameworks/Python.framework/Versions/2.7/bin:
/Library/Frameworks/Python.framework/Versions/2.7/bin:
/usr/local/bin:
/usr/bin:
/bin:
/usr/sbin:
/sbin:
/Applications/SenchaSDKTools:
/Users/jmc72/Sites/senchaSDK:
/usr/X11/bin
我的 .bash_profile:
export PATH=/Applications/SenchaSDKTools:$PATH
export PATH=/Users/jmc72/Sites/senchaSDK:$PATH
Sencha SDK(文档?)位于 /Users/jmc72/Sites/senchaSDK 和 SDKTools 位于 /Applications/SenchaSDKTools
编辑按照我创建 .senchsdk 文件的建议,但现在我收到以下错误:
sencha
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module '/Users/sadmin/Downloads/sencha-touch-2.1.0-commercial/command/sencha.js'
at Function._resolveFilename (module.js:332:11)
at Function._load (module.js:279:25)
at Array.0 (module.js:479:10)
at EventEmitter._tickCallback (node.js:192:40)
我究竟做错了什么?任何帮助将不胜感激。