When I am trying to install the plugin I am getting this error previously it
was working fine :
Installing "cordova-plugin-geolocation" for android
Failed to install 'cordova-plugin-geolocation': Error: ENOENT: no such file or
directory, open
'/var/www/html/WHATSUPLIFE/test/platforms/android/AndroidManifest.xml'
at Object.openSync (fs.js:434:3)
at Object.readFileSync (fs.js:339:35)
at Object.parseElementtreeSync
(/var/www/html/WHATSUPLIFE/test/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
at new AndroidManifest
(/var/www/html/WHATSUPLIFE/test/platforms/android/cordova/lib/AndroidManifest.js:29:20)
at AndroidProject.getPackageName
(/var/www/html/WHATSUPLIFE/test/platforms/android/cordova/lib/AndroidProject.js:99:12)
at Api.addPlugin
(/var/www/html/WHATSUPLIFE/test/platforms/android/cordova/Api.js:223:57)
at handleInstall
(/home/webdior/.nvm/versions/node/v10.9.0/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:594:10)
at
/home/webdior/.nvm/versions/node/v10.9.0/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:357:28
at _fulfilled
(/home/webdior/.nvm/versions/node/v10.9.0/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54)
at
/home/webdior/.nvm/versions/node/v10.9.0/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30
(node:14997) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or
directory, open
'/var/www/html/WHATSUPLIFE/test/platforms/android/AndroidManifest.xml'
at Object.openSync (fs.js:434:3)
at Object.readFileSync (fs.js:339:35)
at Object.parseElementtreeSync
(/var/www/html/WHATSUPLIFE/test/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
at new AndroidManifest
(/var/www/html/WHATSUPLIFE/test/platforms/android/cordova/lib/AndroidManifest.js:29:20)
at AndroidProject.getPackageName
(/var/www/html/WHATSUPLIFE/test/platforms/android/cordova/lib/AndroidProject.js:99:12)
at Api.addPlugin
(/var/www/html/WHATSUPLIFE/test/platforms/android/cordova/Api.js:223:57)
at handleInstall
(/home/webdior/.nvm/versions/node/v10.9.0/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:594:10)
at
/home/webdior/.nvm/versions/node/v10.9.0/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:357:28
at _fulfilled
(/home/webdior/.nvm/versions/node/v10.9.0/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54)
at
/home/webdior/.nvm/versions/node/v10.9.0/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30
(node:14997) UnhandledPromiseRejectionWarning: Unhandled promise rejection.
This error originated either by throwing inside of an async function without a
catch block, or by rejecting a promise which was not handled with .catch().
(rejection id: 1)
(node:14997) [DEP0018] DeprecationWarning: Unhandled promise rejections are
deprecated. In the future, promise rejections that are not handled will
terminate the Node.js process with a non-zero exit code.
Any help is appreciated.
[ Full content available at:
https://github.com/apache/cordova-plugin-geolocation/issues/116 ]
This message was relayed via gitbox.apache.org for [email protected]