【问题标题】:Latest Ripple not working with phonegap (works with Cordova)最新的 Ripple 不适用于 phonegap(适用于 Cordova)
【发布时间】:2014-06-04 07:30:16
【问题描述】:

我正在尝试将最新的 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)

【问题讨论】:

    标签: javascript cordova ripple


    【解决方案1】:

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

    一开始我觉得有点奇怪,但还是决定了……

    【讨论】:

    • 这篇文章发表于 2012 年,它使用的是基于 Chrome 插件的旧版本的 Ripple。我正在使用的最新 Ripple 版本不使用插件。我也试图让它在 Windows 而不是 Linux 上运行,尽管我怀疑我所追求的解决方案只是在某个地方调整路径,所以可能是平台中立的。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-05
    • 1970-01-01
    相关资源
    最近更新 更多