Skip to content

Error: ENOENT: no such file or directory #296

@edyth933

Description

@edyth933

When run npx cap add @capacitor-community/electron, an error occurs like this;

[Error: ENOENT: no such file or directory, stat '~/monorepo/packages/client/node_modules/@capacitor-community/electron/template.tar.gz''] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'stat',
  path: '~/monorepo/packages/client/node_modules/@capacitor-community/electron/template.tar.gz''
}

also these errors occur:

Unable to find node_modules/@vitejs/plugin-react-swc.
Are you sure @vitejs/plugin-react-swc is installed?
Unable to find node_modules/vite-plugin-top-level-await.
Are you sure vite-plugin-top-level-await is installed?

I am running this in ~/monorepo/packages/client, but the dependency packages is located in ~/monorepo/node_modules. I expect this should work like npx vite.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions