ui: [bug]: Error when running npx shadcn@latest add accordion

Describe the bug

EISDIR: illegal operation on a directory, read error when running npx shadcn@latest add accordion

Affected component/components

accordian

How to reproduce

While adding accordian.

Codesandbox/StackBlitz link

No response

Logs


System Info

Ubuntu 22.04.02 LTS

Before submitting

  • I’ve made research efforts and searched the documentation
  • I’ve searched for existing issues

About this issue

Most upvoted comments

Having the same error over here!

Have updates on vue shadcn. Please use radix instead of latest npx shadcn-vue@radix add accordion

worked this for me: npx shadcn-vue@radix init

npx shadcn-vue@0.11.4 add accordion

Temporary workaround

worked for me. Hope it gets fixed soon

npx shadcn-vue@0.11.4 add accordion

Temporary workaround

Confirmed it now works

Also experiencing this with @latest, thanks for the fix!

Same issue! npx shadcn-vue@radix add form npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported

[19:15:38] ERROR [GET] “https://radix.shadcn-vue.com/registry/index.json”: 404 Not Found