Can't install the MOCA cordova plugin

Solved!
Posted in General by Kelvin Ho Mon Nov 30 2015 04:39:33 GMT+0000 (UTC)·2·Viewed 1,068 times

Some files are missing during installation by git C:\hello>cordova plugin add https://github.com/mocaplatform/moca-phonegap-sdk.gi t#:/MOCASDK Fetching plugin "https://github.com/mocaplatform/moca-phonegap-sdk.git" via git clone Installing "com.innoquant.moca.phonegap" for android Error during processing of action! Attempting to revert... Failed to install 'com.innoquant.moca.phonegap':Error: Uh oh! cannot find "C:\hello\platforms\android\com.innoquant.moca.phonegap\mocabuild.gr adle\project.properties" referenced in <framework> at Object.AndroidProject.addSubProject (C:\Users\USER\AppData\Roaming\npm\no de_modules\cordova\node_modules\cordova-lib\src\plugman\util\android-project.js: 70:51) at module.exports.framework.install (C:\Users\USER\AppData\Roaming\npm\node_ modules\cordova\node_modules\cordova-lib\src\plugman\platforms\android.js:110:27 ) at Object.ActionStack.process (C:\Users\USER\AppData\Roaming\npm\node_module s\cordova\node_modules\cordova-lib\src\plugman\util\action-stack.js:72:25) at handleInstall (C:\Users\USER\AppData\Roaming\npm\node_modules\cordova\nod e_modules\cordova-lib\src\plugman\install.js:591:20) at C:\Users\USER\AppData\Roaming\npm\node_modules\cordova\node_modules\cordo va-lib\src\plugman\install.js:340:28 at _fulfilled (C:\Users\USER\AppData\Roaming\npm\node_modules\cordova\node_m odules\q\q.js:787:54) at self.promiseDispatch.done (C:\Users\USER\AppData\Roaming\npm\node_modules \cordova\node_modules\q\q.js:816:30) at Promise.promise.promiseDispatch (C:\Users\USER\AppData\Roaming\npm\node_m odules\cordova\node_modules\q\q.js:749:13) at C:\Users\USER\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.j s:509:49 at flush (C:\Users\USER\AppData\Roaming\npm\node_modules\cordova\node_module s\q\q.js:108:17) Error: Uh oh! cannot find "C:\hello\platforms\android\com.innoquant.moca.phonegap\mocabuild.gr adle\project.properties" referenced in <framework> at Object.AndroidProject.addSubProject (C:\Users\USER\AppData\Roaming\npm\no de_modules\cordova\node_modules\cordova-lib\src\plugman\util\android-project.js: 70:51) at module.exports.framework.install (C:\Users\USER\AppData\Roaming\npm\node_ modules\cordova\node_modules\cordova-lib\src\plugman\platforms\android.js:110:27 ) at Object.ActionStack.process (C:\Users\USER\AppData\Roaming\npm\node_module s\cordova\node_modules\cordova-lib\src\plugman\util\action-stack.js:72:25) at handleInstall (C:\Users\USER\AppData\Roaming\npm\node_modules\cordova\nod e_modules\cordova-lib\src\plugman\install.js:591:20) at C:\Users\USER\AppData\Roaming\npm\node_modules\cordova\node_modules\cordo va-lib\src\plugman\install.js:340:28 at _fulfilled (C:\Users\USER\AppData\Roaming\npm\node_modules\cordova\node_m odules\q\q.js:787:54) at self.promiseDispatch.done (C:\Users\USER\AppData\Roaming\npm\node_modules \cordova\node_modules\q\q.js:816:30) at Promise.promise.promiseDispatch (C:\Users\USER\AppData\Roaming\npm\node_m odules\cordova\node_modules\q\q.js:749:13) at C:\Users\USER\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.j s:509:49 at flush (C:\Users\USER\AppData\Roaming\npm\node_modules\cordova\node_module s\q\q.js:108:17)
Kelvin Ho
Dec 7, 2015

Solved by updated node.js to v4.2.3

Ivan Gonzalez
Jan 8, 2016

Hi Kelvin,

Just to let you know that we have released recently an improved version of the PhoneGap plugin.

Best,

Ivan


Ivan Gonzalez marked this as solved
Markdown is allowed