Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ripple emulator not working on Max OSX

I am facing problem when starting my ripple emulator for my Phonegap project. When I launch Ripple-Emulate command in General development folder (not the platform subfolders), ripple emulator starts, but it shows error message:

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)

And Chrome indicates that it: Failed to load resource: the server responded with a status of 500 (Internal Server Error) (could not load config.xml file) although i have config.xml file in my www folder.

This problem cannot be solved also when i launch ripple emulate --path platforms/ios/assets/www, then it shows: Cannot GET / error (again complaining about config.xml file).

Anyone know solution for this?

like image 430
user3432056 Avatar asked Jan 11 '23 02:01

user3432056


1 Answers

It seems like you are creating an app for an IOS device. But Ripple defaults to an Android device, so if you change it to an IOS device and try, it'll sove the error.

like image 137
Rajesh Manilal Avatar answered Jan 18 '23 05:01

Rajesh Manilal