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

Running `crm init-crm` on Windows gives "ERR_INVALID_ARG_TYPE" error

Open daltonrpruitt opened this issue 9 months ago • 0 comments

Hi, I realize this is project is unsupported at the moment, but I wanted to document a problem I ran into in case it was picked back up later.

Using Node.js v23.11.0 on a Windows 10 machine, running the crm init-crm command consistently led to a "ERR_INVALID_ARG_TYPE" error. I investigated, and it seemed to be the

await database.create();

line in the main crm file. (permalink to line in github)

Changing this to

await database.create('{}');

to simulate an empty json object seemed to prevent the error.

I'm not sure where in the logic the error is, but it may be a problem with the newer Node version. I don't know enough yet to speak confidently, but I again just wanted to leave this hear for future people.

Thank you!

daltonrpruitt avatar Apr 23 '25 19:04 daltonrpruitt