You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error occurs
Installing "cordova-plugin-device-motion" for android
Failed to install 'cordova-plugin-device-motion': Error: Unable to load Platform API from /media/mani-pc/your disk1/developer folder/android project/ionic_testing/platforms/android/cordova/Api.js:
Cannot find module 'strip-final-newline'
Require stack:
/usr/local/lib/node_modules/cordova/bin/cordova
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
at Function.Module._load (internal/modules/cjs/loader.js:686:27)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/media/mani-pc/your disk1/developer folder/android project/ionic_testing/platforms/android/cordova/node_modules/execa/index.js:5:27)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Module.require (internal/modules/cjs/loader.js:848:19)
Unable to load Platform API from /media/mani-pc/your disk1/developer folder/android project/ionic_testing/platforms/android/cordova/Api.js:
Cannot find module 'strip-final-newline'
Require stack:
Bug Report
Problem
What is expected to happen?
Seamless install
What does actually happen?
Stop with error saying module missing
Information
This error occurs
Installing "cordova-plugin-device-motion" for android
Failed to install 'cordova-plugin-device-motion': Error: Unable to load Platform API from /media/mani-pc/your disk1/developer folder/android project/ionic_testing/platforms/android/cordova/Api.js:
Cannot find module 'strip-final-newline'
Require stack:
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
at Function.Module._load (internal/modules/cjs/loader.js:686:27)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/media/mani-pc/your disk1/developer folder/android project/ionic_testing/platforms/android/cordova/node_modules/execa/index.js:5:27)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Module.require (internal/modules/cjs/loader.js:848:19)
Unable to load Platform API from /media/mani-pc/your disk1/developer folder/android project/ionic_testing/platforms/android/cordova/Api.js:
Cannot find module 'strip-final-newline'
Require stack:
Command or Code
ionic cordova plugin add cordova-plugin-device-motion
Environment, Platform, Device
android
Version information
Ionic 6.14
Checklist
The text was updated successfully, but these errors were encountered: