Open TanzimHossain2 opened 1 month ago
Hello. I had the same problem when switching node versions. In my case, I solved it by deleting the cached data stored by npx
.
In the same error message, you can see the directory location that needs to be deleted in your case.
C:\Users\Forhad vi\AppData\Local\npm-cache\_npx\125ee17d583c4e03
Then, when making a new request, you need to accept the download of the library.
npx shadcn-ui@latest init
Hello. I had the same problem when switching node versions. In my case, I solved it by deleting the cached data stored by
npx
.In the same error message, you can see the directory location that needs to be deleted in your case.
C:\Users\Forhad vi\AppData\Local\npm-cache\_npx\125ee17d583c4e03
Then, when making a new request, you need to accept the download of the library.
npx shadcn-ui@latest init
npx shadcn-ui init ```` remove '@latest ' part
Describe the bug
I encountered errors when trying to run the
shadcn-ui
commands as described in the documentation. The commandsnpx shadcn-ui@latest init
andnpx shadcn-ui@latest add button
fail with aCannot find package
error.Affected component/components
shadcn/ui
initialization and component addition commands.How to reproduce
shadcn-ui
init command:Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting