create-ic
create-ic copied to clipboard
Windows and Linux(Debian) Support - Error trying to run npm init ic
when I try to run the " npm init ic@latest " command I get this error:
create-ic version 0.5.0
Unexpected error Error: spawn command ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:285:19)
at onErrorNT (node:internal/child_process:483:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn command',
path: 'command',
spawnargs: [ '-v', 'dfx' ]
Are you on Windows? If yes, this CLI does not support this OS (yes, PR welcome).
If Mac or Linux, what version of NodeJS are you using?
i also got same error , i am using WSL2 and my node version is v18.16.0
WSL2
Thanks for the addition feedback. That's the issue then. This CLI does not support Windows (yet) so I guess it does not work with WSL2 as well.
PR welcome!
I am also facing the same issue on Linux(Debian). I am running node v18.15.0 and npm v9.6.7
@sam-the-tutor thanks for the ping.
Did you use the last version of the CLI?
npm init ic@latest
And what version of NodeJS are you using?
I used that command but it failed.
I am running node v18.15.0
@sam-the-tutor well then, it look like it does not work on Linux (Debian) as well 😢.
I don't plan to solve this my self but, if you or anyone is keen to provide a PR, for sure happy to review and merge it!