Installation Errors #186

Closed
SteveKelseyMocapay opened this Issue Sep 30, 2015 · 7 comments

Projects

None yet

5 participants

@SteveKelseyMocapay

Cordova version 5.3.3
Plugman version 1.0.4
Android support library 23.0.1 installed
Get the following error when using cordova plugin add phonegap-plugin-push. Anyone have any advice?

Fetching plugin "phonegap-plugin-push" via npm
Installing "phonegap-plugin-push" for android
Error during processing of action! Attempting to revert...
Failed to install 'phonegap-plugin-push':TypeError: Uh oh!
Arguments to path.resolve must be strings
at Object.exports.resolve (path.js:313:15)
at Object.module.exports.framework.install (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/android.js:139:35)
at installWrapper (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/platforms.js:77:32)
at Object.ActionStack.process (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/action-stack.js:68:25)
at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:576:20)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:363:28
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:509:49
TypeError: Uh oh!
Arguments to path.resolve must be strings
at Object.exports.resolve (path.js:313:15)
at Object.module.exports.framework.install (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/android.js:139:35)
at installWrapper (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/platforms.js:77:32)
at Object.ActionStack.process (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/action-stack.js:68:25)
at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:576:20)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:363:28
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:509:49

@macdonst
Member
macdonst commented Oct 1, 2015

@SteveKelseyMocapay what version of Node/NPM are you using?

@SteveKelseyMocapay

npm version 1.4.28
node 0.10.35

@macdonst
Member
macdonst commented Oct 1, 2015

@SteveKelseyMocapay is is possible for you to update your npm version? That seems to be a super old version of npm.

@SteveKelseyMocapay

I updated npm to the lates version and had the same issue. I then removed the platforms, added the plugin and then re-added the plugin and that worked. This can be marked as done as I have gotten past my issue. Thank you for the help.

@CookieCookson
Contributor

I had this issue too, fixed it by updating the android platform on my project from 3.6.4 to 4.0.0

@CookieCookson CookieCookson referenced this issue in danwilson/google-analytics-plugin Oct 8, 2015
Closed

Build Error #158

@fredgalvao
Contributor

This is not a plugin error, but a cordova error. +1's are welcome here.

@luisaccedo

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment