我尝试将最新的Apache Ripple移动设备模拟器与PhoneGap + Sencha Touch配合使用。适用于Cordova应用程序,但不适用于PhoneGap。
观察
完整日志
INFO: Server instance running on: http://localhost:4400
INFO: CORS XHR proxy service on: http://localhost:4400/ripple/xhr_proxy
INFO: JSONP XHR proxy service on: http://localhost:4400/ripple/jsonp_xhr_proxy
Cordova 3.0 Project detected...
fs.js:654
return binding.readdir(pathModule._makeLong(path));
^
Error: ENOENT, no such file or directory 'd:\Learn\PhoneGap\weatherapp\phonegap\platforms\android\assets\www\platforms'
at Object.fs.readdirSync (fs.js:654:18)
at buildPaths (c:\Users\tohagan\AppData\Roaming\npm\node_modules\ripple-emulator\lib\server\emulate\cordovaProject.js:11:28)
at Object.module.exports.inject (c:\Users\tohagan\AppData\Roaming\npm\node_modules\ripple-emulator\lib\server\emulate\cordovaProject.js:38:21)
at Object.module.exports.start (c:\Users\tohagan\AppData\Roaming\npm\node_modules\ripple-emulator\lib\server\emulate.js:60:32)
at Object.self.start (c:\Users\tohagan\AppData\Roaming\npm\node_modules\ripple-emulator\lib\cli\emulate.js:30:27)
at Object.self.call (c:\Users\tohagan\AppData\Roaming\npm\node_modules\ripple-emulator\lib\cli\emulate.js:27:14)
at lookup (c:\Users\tohagan\AppData\Roaming\npm\node_modules\ripple-emulator\lib\cli\index.js:43:20)
at Object.module.exports.interpret (c:\Users\tohagan\AppData\Roaming\npm\node_modules\ripple-emulator\lib\cli\index.js:58:13)
at Object.<anonymous> (c:\Users\tohagan\AppData\Roaming\npm\node_modules\ripple-emulator\bin\ripple:22:25)
at Module._compile (module.js:456:26)
答案 0 :(得分:0)
我设法通过执行以下步骤http://johnreid.it/2012/06/23/get-ripple-to-work-in-linux/来解决问题。
起初我发现有点奇怪,但决定......