Skip to content

Error occurred when executing command: yarn run dev #26

@louislugas

Description

@louislugas

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions