Skip to content

[bug]: npx shadcn@latest init not working #8552

@junleyan

Description

@junleyan

Describe the bug

I'm stuck on "Creating a New Next.js project" after running npx shadcn@latest init. I’ve waited about 10 minutes, but it’s still stuck, the /app directory hasn't even been created after all the waits.

(base) username@MacBook-Air-3 repo_name % npx shadcn@latest init
✔ The path /Users/username/Downloads/repo_name does not contain a package.json file.
  Would you like to start a new project? › Next.js
✔ What is your project named? … app
⠸ Creating a new Next.js project. This may take a few minutes.

Affected component/components

N/A

How to reproduce

  1. Run npx shadcn@latest init.
  2. Select "Next.js" when prompted with "Would you like to start a new project?"
  3. Enter any name when asked "What is your project named?"
  4. You'll now be stuck at "Creating a new Next.js project. This may take a few minutes."

Codesandbox/StackBlitz link

No response

Logs

System Info

System: macOS 14.6 (Sonoma), Build 23G80
Hardware: MacBook Air (M2, Model Identifier Mac14,2) with 8 GB RAM
Architecture: ARM64 (Apple Silicon)
CPU: 8 cores (4 performance + 4 efficiency)
Kernel: Darwin 23.6.0

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions