apla / me.apla.cordova.app-preferences

App preferences plugin for cordova
Apache License 2.0
201 stars 210 forks source link

Plugin add is broken for node 0.10.x #63

Closed stefhenry closed 8 years ago

stefhenry commented 8 years ago

Hi,

I have phonegap 5.4.0 and cordova 5.3.7, I am trying to add this plugin but I always get this error :

sudo phonegap cordova plugin add cordova-plugin-app-preferences Fetching plugin "cordova-plugin-app-preferences" via npm

Installing "cordova-plugin-app-preferences" for ios

Error during processing of action! Attempting to revert...

Failed to install 'cordova-plugin-app-preferences':TypeError: Uh oh! Object # has no method 'parse' at module.exports.common.js-module.install (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/common.js:131:71) at /usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/platforms/PlatformApiPoly.js:653:27 at Object.ActionStack.process (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/node_modules/cordova-common/src/ActionStack.js:56:25) at PlatformApiPoly.addPlugin (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/platforms/PlatformApiPoly.js:259:20) at handleInstall (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:603:6) at /usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:382:28 at _fulfilled (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/q/q.js:749:13) at /usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/q/q.js:509:49

Error: Uh oh! Object # has no method 'parse'

thanks for your support,

Stéphane

shredmer commented 8 years ago

Try adding directly from the repo: cordova plugin add https://github.com/apla/me.apla.cordova.app-preferences

stefhenry commented 8 years ago

I tried but it's the same error message.

stefhenry commented 8 years ago

Which Cordova version are you using now ? Is there a specific version to use to make it compatible ?

Thanks,

apla commented 8 years ago

@stefhenry, cordova developers is ruined support for node 0.10.x, there is an issue: https://issues.apache.org/jira/browse/CB-9981 and pull request: https://github.com/apache/cordova-lib/pull/340. This issue not about this plugin, but cordova itself.

stefhenry commented 8 years ago

thank you so much @apla

apla commented 8 years ago

Pull request accepted, waiting for cordova tools release.

apla commented 8 years ago

Works fine with node@0.10.x and cordova@5.4.1