Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies not specified #77

Closed
3 tasks
Mani-VD opened this issue Jun 11, 2021 · 1 comment
Closed
3 tasks

Dependencies not specified #77

Mani-VD opened this issue Jun 11, 2021 · 1 comment

Comments

@Mani-VD
Copy link

Mani-VD commented Jun 11, 2021

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:

  • /media/mani-pc/your disk1/developer folder/android project/ionic_testing/platforms/android/cordova/node_modules/execa/index.js
  • /media/mani-pc/your disk1/developer folder/android project/ionic_testing/platforms/android/cordova/lib/check_reqs.js
  • /media/mani-pc/your disk1/developer folder/android project/ionic_testing/platforms/android/cordova/lib/prepare.js
  • /media/mani-pc/your disk1/developer folder/android project/ionic_testing/platforms/android/cordova/Api.js
  • /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/util.js
  • /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/index.js
  • /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/platforms.js
  • /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js
  • /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/plugman.js
  • /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/cordova-lib.js
  • /usr/local/lib/node_modules/cordova/src/help.js
  • /usr/local/lib/node_modules/cordova/src/cli.js
  • /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:
  • /media/mani-pc/your disk1/developer folder/android project/ionic_testing/platforms/android/cordova/node_modules/execa/index.js
  • /media/mani-pc/your disk1/developer folder/android project/ionic_testing/platforms/android/cordova/lib/check_reqs.js
  • /media/mani-pc/your disk1/developer folder/android project/ionic_testing/platforms/android/cordova/lib/prepare.js
  • /media/mani-pc/your disk1/developer folder/android project/ionic_testing/platforms/android/cordova/Api.js
  • /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/util.js
  • /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/index.js
  • /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/platforms.js
  • /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js
  • /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/plugman.js
  • /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/cordova-lib.js
  • /usr/local/lib/node_modules/cordova/src/help.js
  • /usr/local/lib/node_modules/cordova/src/cli.js
  • /usr/local/lib/node_modules/cordova/bin/cordova

Command or Code

ionic cordova plugin add cordova-plugin-device-motion

Environment, Platform, Device

android

Version information

Ionic 6.14

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@jcesarmobile
Copy link
Member

I can't reproduce on latest cordova

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants