javascript - 最新的 Ripple 不适用于phonegap(适用于 Cordova)

标签 javascript cordova ripple

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

观察

  • 报告称它检测到实际上是 PhoneGap 项目的“Cordova 3.0 项目”
  • 未能发现 PhoneGap 或 Cordova 项目都不存在:
    • 'd:\Learn\PhoneGap\weatherapp\phonegap\platforms\android\assets\www\platforms'
  • 此目录确实存在
    • 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)

最佳答案

我设法按照以下步骤修复http://johnreid.it/2012/06/23/get-ripple-to-work-in-linux/

一开始我觉得有点奇怪,但后来决定......

关于javascript - 最新的 Ripple 不适用于phonegap(适用于 Cordova),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24031505/

相关文章:

javascript - 尝试在 PHP 中调用 jQuery - 不起作用?

ajax - 在phonegap错误中通过ajax调用SOAP Web服务

javascript - attachEvent 带来麻烦

javascript - React-Modal "Cannot Read Property of State of Null"错误

javascript - 使用 PhoneGap 检查何时下载了多个文件

android - 部署到设备时未加载 cordova 包

android - 如何为按钮添加带渐变的波纹效果?

cordova - Visual Studio 多设备项目在 Ripple 中间歇性地挂起

javascript - Angular.js 'Unknown provider: iProvider <- i' 生产错误

java - Android 中的 Ionic 条码扫描进程崩溃