Closed OrgDrReach closed 1 week ago
in my case, i removed yarn.lock and try again "npx shadcn@latest init"
@trondi thanks it works
@trondi Thanks it works
This didn't work when I was using Default
I had to switch to New York
for the installation to work, after which I changed the value in the components.json
file back to Default
Same as @eioluseyi, had to use New York
instead of Default
. On Windows 10 using PowerShell and using npm shadcn@latest init
.
Describe the bug
sudeepta@IdeaPad-Flex-5-14ALC05:maa-tarini-electricals$ npx shadcn@latest init ✔ Preflight checks. ✔ Verifying framework. Found Next.js. ✔ Validating Tailwind CSS. ✔ Validating import alias. ✔ Which style would you like to use? › Default ✔ Which color would you like to use as the base color? › Neutral ✔ Would you like to use CSS variables for theming? … no / yes ✔ Writing components.json. ✔ Checking registry. ✔ Updating tailwind.config.ts ✔ Updating app/globals.css ⠴ Installing dependencies. Something went wrong. Please check the error below for more details. If the problem persists, please open an issue on GitHub.
Command failed with exit code 1: yarn add tailwindcss-animate class-variance-authority lucide-react clsx tailwind-merge error Received malformed response from registry for "". The registry may be down. yarn add v1.22.22 [1/4] Resolving packages... info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Affected component/components
None
How to reproduce
type
npx shadcn@latest init
you will get to see thee bugCodesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting