Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
luis200hr opened this issue May 14, 2023 · 7 comments
Open
Labels
help wanted Extra attention is needed

Comments

@luis200hr
Copy link

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

@peterpeterparker
Copy link
Owner

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 peterpeterparker added the question Further information is requested label May 15, 2023
@v2i0s2h2
Copy link

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

@peterpeterparker
Copy link
Owner

peterpeterparker commented May 15, 2023

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 peterpeterparker added help wanted Extra attention is needed and removed question Further information is requested labels May 15, 2023
@peterpeterparker peterpeterparker changed the title Error trying to run npm init ic Windows Support - Error trying to run npm init ic May 15, 2023
@sam-the-tutor
Copy link

I am also facing the same issue on Linux(Debian). I am running node v18.15.0 and npm v9.6.7

@peterpeterparker
Copy link
Owner

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

@sam-the-tutor
Copy link

I used that command but it failed.

I am running node v18.15.0

@peterpeterparker peterpeterparker changed the title Windows Support - Error trying to run npm init ic Windows and Linux(Debian) Support - Error trying to run npm init ic Jun 5, 2023
@peterpeterparker
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants