Inno-Setup-Action icon indicating copy to clipboard operation
Inno-Setup-Action copied to clipboard

The "code" argument must be of type number. Received type string

Open cikichen opened this issue 1 year ago • 6 comments

node:internal/errors:541 throw error; ^ TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('ERR_CHILD_PROCESS_STDIO_M...') at process.set [as exitCode] (node:internal/bootstrap/node:123:9) at process.exit (node:internal/process/per_thread:180:24) at D:\actions-runner_work_actions\Minionguyjpro\Inno-Setup-Action\v1.2.5\dist\index.js:26632:19 at ChildProcess.exithandler (node:child_process:430:5) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1105:16) at ChildProcess._handle.onexit (node:internal/child_process:305:5) { code: 'ERR_INVALID_ARG_TYPE' } Node.js v20.13.1

cikichen avatar Nov 10 '24 14:11 cikichen

I have the same question

zhycheng614 avatar Dec 09 '24 01:12 zhycheng614

I think I replied on AI too much for this. I think I know how to fix this though.

Minionguyjpro avatar Dec 09 '24 06:12 Minionguyjpro

I think I replied on AI too much for this. I think I know how to fix this though.

So how to solve this problem?

zhycheng614 avatar Dec 09 '24 21:12 zhycheng614

Maybe not sure, but I will look into this somewhere next week.

Minionguyjpro avatar Dec 22 '24 08:12 Minionguyjpro

node:internal/errors:541 throw error; ^ TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('ERR_CHILD_PROCESS_STDIO_M...') at process.set [as exitCode] (node:internal/bootstrap/node:123:9) at process.exit (node:internal/process/per_thread:180:24) at D:\actions-runner_work_actions\Minionguyjpro\Inno-Setup-Action\v1.2.5\dist\index.js:26632:19 at ChildProcess.exithandler (node:child_process:430:5) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1105:16) at ChildProcess._handle.onexit (node:internal/child_process:305:5) { code: 'ERR_INVALID_ARG_TYPE' } Node.js v20.13.1

Could you show me your workflow?

Minionguyjpro avatar Dec 27 '24 19:12 Minionguyjpro

node:internal/errors:541 throw error; ^ TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('ERR_CHILD_PROCESS_STDIO_M...') at process.set [as exitCode] (node:internal/bootstrap/node:123:9) at process.exit (node:internal/process/per_thread:180:24) at D:\actions-runner_work_actions\Minionguyjpro\Inno-Setup-Action\v1.2.5\dist\index.js:26632:19 at ChildProcess.exithandler (node:child_process:430:5) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1105:16) at ChildProcess._handle.onexit (node:internal/child_process:305:5) { code: 'ERR_INVALID_ARG_TYPE' } Node.js v20.13.1

Could you show me your workflow?

I switched to using choco install innosetup --yes.

cikichen avatar Jan 08 '25 09:01 cikichen