NuxtN
Nuxt2y ago
Basti

Module not found when trying to install a shadcn module

I just started a new project and am trying to install a simple dropdown menu with shadcn but am getting this error that I don't know what to do about. At first I thought it might be due to the path length being too long so I tried editing the registry key to allow longer paths and I also set the max path to a higher number in .npmrc, to no avail. Clearing the pnpm cache and reinstalling node_modules did nothing either.

- Operating System: Windows_NT
- Node Version:     v20.16.0
- Nuxt Version:     3.12.4
- CLI Version:      3.12.0
- Nitro Version:    -
- Package Manager:  pnpm@9.6.0
- Builder:          -
- User Config:      compatibilityDate, devtools, css, app, postcss, modules, shadcn    
- Runtime Modules:  @nuxtjs/i18n@8.3.3, @nuxt/icon@1.4.0, @nuxtjs/tailwindcss@6.12.1, shadcn-nuxt@0.10.4
- Build Modules:    -
image.png
Was this page helpful?