huntabyte / shadcn-svelte

shadcn/ui, but for Svelte. ✨
https://shadcn-svelte.com
MIT License
4.38k stars 276 forks source link

CLI wont install #1150

Open NafunaAfrica opened 2 weeks ago

NafunaAfrica commented 2 weeks ago

Describe the bug

PS C:\Users\Nqo Mlilo\OneDrive\Documents\APP DEV\nafunaxredo> npx shadcn-svelte@latest init npm error code ENOENT npm error syscall lstat npm error path C:\Users\Nqo Mlilo\AppData\Roaming\npm npm error errno -4058 npm error enoent ENOENT: no such file or directory, lstat 'C:\Users\Nqo Mlilo\AppData\Roaming\npm' npm error enoent This is related to npm not being able to find a file. npm error enoent

npm error A complete log of this run can be found in: C:\Users\Nqo Mlilo\AppData\Local\npm-cache_logs\2024-06-17T17_12_52_537Z-debug-0.log

I get this when I try run the cli

Reproduction

I followed steps on the sveltekit guide and got this

Logs

No response

System Info

windows, amd ryzen 7, 16 gb ram,

Severity

blocking all usage of shadcn-svelte

SureshPradhana commented 1 week ago

Try running npm cache clean --force. It seems like npm can't find the directories.

huntabyte commented 1 week ago

I'm not able to reproduce this. Are you still having this issue?