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

Error occurred when executing command: yarn run dev #26

Open
louislugas opened this issue May 14, 2023 · 1 comment
Open

Error occurred when executing command: yarn run dev #26

louislugas opened this issue May 14, 2023 · 1 comment

Comments

@louislugas
Copy link

I've done some code and played with this template for days, and it works fine. But once I restart my vs code, when I run npm run electron-dev, it shows error

[0] Error occurred when executing command: yarn run dev
[0] Error: spawn cmd.exe ENOENT
[0]     at ChildProcess._handle.onexit (node:internal/child_process:283:19)
[0]     at onErrorNT (node:internal/child_process:476:16)
[0]     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
[1] Error occurred when executing command: yarn run electron
[1] Error: spawn cmd.exe ENOENT
[1]     at ChildProcess._handle.onexit (node:internal/child_process:283:19)
[1]     at onErrorNT (node:internal/child_process:476:16)
[1]     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
[1] yarn run electron exited with code -4058
[0] yarn run dev exited with code -4058

What is it? and how to fix it?

@soulehshaikh99
Copy link
Owner

Can you try and reinstall the dependencies once, also check if yarn is installed on your system and can be accessed through cmd or console whatever it is. Also mention the name of OS, OS version, Node version and Yarn version you are using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants