Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Installation Errors #186

Closed
SteveKelseyMocapay opened this issue Sep 30, 2015 · 8 comments
Closed

Installation Errors #186

SteveKelseyMocapay opened this issue Sep 30, 2015 · 8 comments

Comments

@SteveKelseyMocapay
Copy link

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
Copy link
Member

macdonst commented Oct 1, 2015

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

@SteveKelseyMocapay
Copy link
Author

npm version 1.4.28
node 0.10.35

@macdonst
Copy link
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
Copy link
Author

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
Copy link
Contributor

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

@fredgalvao
Copy link
Collaborator

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

@luisaccedo
Copy link

+1

@lock
Copy link

lock bot commented Jun 4, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

5 participants