You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "AlessandroMetta (via GitHub)" <gi...@apache.org> on 2023/10/17 15:52:00 UTC

[I] cordova prepare throw exception [cordova-android]

AlessandroMetta opened a new issue, #1675:
URL: https://github.com/apache/cordova-android/issues/1675

   > cordova prepare
   TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('MODULE_NOT_FOUND')
       at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
       at C:\Users\alessandro.metta\AppData\Roaming\npm\node_modules\cordova\bin\cordova:32:22


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] cordova prepare throw exception [cordova-android]

Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #1675:
URL: https://github.com/apache/cordova-android/issues/1675#issuecomment-1768304604

   I've installed and tested v20.8.0 specifically and unable to reproduce the issue in any of my projects and I also ran all the unit tests and they pass successfully.
   
   There isn't really enough information to act on, so I'm closing this issue.
   
   If you're affected by this issue, please create a new issue with the issue template filled out.
   
   Including the log output of `--verbose` (e.g. `cordova prepare android --verbose`) may also provide information.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] cordova prepare throw exception [cordova-android]

Posted by "AlessandroMetta (via GitHub)" <gi...@apache.org>.
AlessandroMetta commented on issue #1675:
URL: https://github.com/apache/cordova-android/issues/1675#issuecomment-1768483545

   thanks @breautek , --verbose revealed that it failed while executing before_prepare.js, as some npm dependancies were missing


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] cordova prepare throw exception [cordova-android]

Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #1675:
URL: https://github.com/apache/cordova-android/issues/1675#issuecomment-1766704857

   what's your node version?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] cordova prepare throw exception [cordova-android]

Posted by "moianra23 (via GitHub)" <gi...@apache.org>.
moianra23 commented on issue #1675:
URL: https://github.com/apache/cordova-android/issues/1675#issuecomment-2739487678

   Updating to Command Line Tools 19 fixed this for me. I had version 17 before.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] cordova prepare throw exception [cordova-android]

Posted by "AlessandroMetta (via GitHub)" <gi...@apache.org>.
AlessandroMetta commented on issue #1675:
URL: https://github.com/apache/cordova-android/issues/1675#issuecomment-1767862618

   > what's your node version?
   
   v20.8.0


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] cordova prepare throw exception [cordova-android]

Posted by "kuanyui (via GitHub)" <gi...@apache.org>.
kuanyui commented on issue #1675:
URL: https://github.com/apache/cordova-android/issues/1675#issuecomment-2333279243

   Also encountered exactly the same error message, platform
   
   - Linux
   - `node` 20.03
       - `cordova` 12.0.0
   - `openjdk` 21.0.4 
       - `gradle` 8.10
       - `android-studio` 2024.1.2
   
   Create project via
   ```sh
   cordova create myapp
   cd myapp
   cordova platform add android
   cordova run --emulator
   ```
   
   And finally found the reason in this issue https://github.com/apache/cordova-android/issues/1717 --- that it's necessary to **manually startup** an Android emulator in Android Studio (`Android Studio -> (right sidebar) Running Devices`) before running `cordova run --emulator`.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] cordova prepare throw exception [cordova-android]

Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek closed issue #1675: cordova prepare throw exception
URL: https://github.com/apache/cordova-android/issues/1675


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org