gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 08:12:22 24 4
gpt4 key购买 nike

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

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com