Trying to deploy a project from v0 locally using npx shadcn add and getting an error

I made a project in v0 and trying to save it locally using the npx shadcn@latest add + the URL of the project on my local Mac machine.

I have node 22, but when I run the command above in an empty directory I get this error:

Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

The component at https://ui.shadcn.com/r/styles/new-york/toaster.json was not found.
It may not exist at the registry. Please make sure it is a valid component.

This also happens if I choose “default” instead of “New York”.

Why is that and how to fix it?

Hi, @deemeetree! Welcome to the Vercel Community :smile:

Could you try using the correct command format? So instead of using the v0 project URL, you could use the shadcn-ui CLI to add components directly. The correct format is:

npx shadcn@latest add <component-name>

For example, to add a button component:

npx shadcn@latest add button

Let us know if that helps!

I tried that and didn’t work

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.