# How to install shadcn-ui on latest Next.js beta-RC

> Installing shadcn/ui on the latest Next.js RC fails over dependencies, so here is how to force it with npx --force shadcn@latest init and add components.

Author: [Flavio Copes](https://flaviocopes.com/about/) | Published: 2024-09-19 | Topics: [Next.js](https://flaviocopes.com/tags/next/) | Canonical: https://flaviocopes.com/how-to-install-shadcn-ui-on-latest-nextjs-beta-rc/

If you want to setup and use shadcn/ui on the latest [Next.js](https://flaviocopes.com/nextjs/) RC (not the stable release), regular setup fails for dependencies issues.

You must force it with `npx --force`:

```typescript
npx --force shadcn@latest init
```

Same for installing components:

```typescript
npx --force shadcn@latest add button
```
