apache / cordova-android

Apache Cordova Android
https://cordova.apache.org/
Apache License 2.0
3.59k stars 1.52k forks source link

cordova prepare throw exception #1675

Closed AlessandroMetta closed 6 months ago

AlessandroMetta commented 6 months ago

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

breautek commented 6 months ago

what's your node version?

AlessandroMetta commented 6 months ago

what's your node version?

v20.8.0

breautek commented 6 months ago

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.

AlessandroMetta commented 6 months ago

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