hygen icon indicating copy to clipboard operation
hygen copied to clipboard

[support] Unable to load my generator

Open italomaia opened this issue 1 year ago • 1 comments

I recently created a generator: https://github.com/italomaia/hygen-axum-podman-template

Now I'm trying to test it with hygen-add, but I'm getting the following error:

> hygen-add axum-podman


Can't add hygen-axum-podman

 [Error: ENOENT: no such file or directory, scandir 'node_modules/hygen-axum-podman/_templates'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path: 'node_modules/hygen-axum-podman/_templates'
}

If I create node_modules/hygen-axum-podman/_templates with mkdir, hygen-add manages to download the template, but then npx hygen is unable to use it. Any ideas?

italomaia avatar Sep 27 '24 21:09 italomaia