create-ic icon indicating copy to clipboard operation
create-ic copied to clipboard

Windows and Linux(Debian) Support - Error trying to run npm init ic

Open luis200hr opened this issue 1 year ago • 7 comments

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' ] error

luis200hr avatar May 14 '23 20:05 luis200hr

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?

peterpeterparker avatar May 15 '23 04:05 peterpeterparker

i also got same error , i am using WSL2 and my node version is v18.16.0

v2i0s2h2 avatar May 15 '23 05:05 v2i0s2h2

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!

peterpeterparker avatar May 15 '23 05:05 peterpeterparker

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 avatar Jun 05 '23 10:06 sam-the-tutor

@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?

peterpeterparker avatar Jun 05 '23 10:06 peterpeterparker

I used that command but it failed.

I am running node v18.15.0

sam-the-tutor avatar Jun 05 '23 11:06 sam-the-tutor

@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!

peterpeterparker avatar Jun 05 '23 11:06 peterpeterparker