波纹模拟器无法在Max OSX上运行

用户名

当为我的Phonegap项目启动我的波纹模拟器时,我遇到了问题。当我在常规开发文件夹(而不是平台子文件夹)中启动Ripple-Emulate命令时,波纹仿真器启动,但显示错误消息:

Error: static() root path required
at Function.static (/usr/local/lib/node_modules/ripple-emulator/node_modules/express/node_modules/connect/lib/middleware/static.js:49:20)
at Object.handle (/usr/local/lib/node_modules/ripple-emulator/lib/server/emulate/static.js:6:27)
at next (/usr/local/lib/node_modules/ripple-emulator/node_modules/express/node_modules/connect/lib/proto.js:199:15)
at handle (/usr/local/lib/node_modules/ripple-emulator/lib/server/emulate/hosted.js:156:17)
at Object.handle (/usr/local/lib/node_modules/ripple-emulator/lib/server/emulate/hosted.js:183:13)
at next (/usr/local/lib/node_modules/ripple-emulator/node_modules/express/node_modules/connect/lib/proto.js:199:15)
at Object.handle (/usr/local/lib/node_modules/ripple-emulator/lib/server/emulate/cordovaProject.js:54:13)
at next (/usr/local/lib/node_modules/ripple-emulator/node_modules/express/node_modules/connect/lib/proto.js:199:15)
at next (/usr/local/lib/node_modules/ripple-emulator/node_modules/express/node_modules/connect/lib/proto.js:174:78)
at pass (/usr/local/lib/node_modules/ripple-emulator/node_modules/express/lib/router/index.js:107:24)

Chrome指出了这一点:无法加载资源:服务器的响应状态为500(内部服务器错误)(无法加载config.xml文件),尽管我的www文件夹中有config.xml文件。

当我启动涟漪仿真--path platform / ios / assets / www时,也无法解决此问题,然后显示:无法GET /错误(再次抱怨config.xml文件)。

有人知道解决方案吗?

拉杰什·马尼拉(Rajesh Manilal)

似乎您正在为IOS设备创建应用程序。但是Ripple默认使用Android设备,因此,如果将其更改为IOS设备并尝试使用,它将消除错误。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章