I am creating a small project with vite and I keep getting this error when I try to run npx shadcn-ui@latest init:
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:\Users\user\AppData\Roaming\npm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\user\AppData\Roaming\npm'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
Create a folder npm in C:\Users\user-name\AppData\Roaming, and then redo the command.
This allows the package to be seen in files it runs through.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With