最新的Ripple无法使用phonegap(适用于Cordova)

时间:2014-06-04 07:30:16

标签: javascript cordova ripple

我尝试将最新的Apache Ripple移动设备模拟器与PhoneGap + Sencha Touch配合使用。适用于Cordova应用程序,但不适用于PhoneGap。

观察

  • 报告它检测到Cordova 3.0项目'这实际上是一个PhoneGap项目
  • 无法找到PhoneGap或Cordova项目不存在的内容:
    • ' d:\了解\的PhoneGap \ weatherapp \的PhoneGap \平台\机器人\资产\ WWW \平台'
  • 此目录确实存在
    • d:\ Learn \ PhoneGap \ weatherapp \ phonegap \ platforms \ android \ assets \ www \

完整日志

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)

1 个答案:

答案 0 :(得分:0)

我设法通过执行以下步骤http://johnreid.it/2012/06/23/get-ripple-to-work-in-linux/来解决问题。

起初我发现有点奇怪,但决定......