cordova-cli icon indicating copy to clipboard operation
cordova-cli copied to clipboard

CLI Process.Exit code error - The "code" argument must be of type number. Received type string ('ERR_INVALID_ARG_TYPE')

Open VaniMankad opened this issue 7 months ago • 1 comments

Problem

While using plugin - https://github.com/darryncampbell/darryncampbell-cordova-plugin-intent & trying to generate android build.

I am facing below error :

TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('ERR_INVALID_ARG_TYPE') at process.set [as exitCode] (node:internal/bootstrap/node:123:9) at /usr/lib/node_modules/cordova/bin/cordova:32:22

Any suggestion ?

VaniMankad avatar Jun 10 '25 08:06 VaniMankad

Please remove the folders node_modules, platforms and plugins and try again

GitToTheHub avatar Jun 10 '25 14:06 GitToTheHub