-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Description
Describe the bug
While creating a new Next.js project using shadcn@latest create with a preset, the process fails with an EPERM: operation not permitted error on Windows.
The error occurs even when the terminal is run as Administrator, suggesting this is not a simple permission issue.
Command Used:
pnpm dlx shadcn@latest create \
--preset "https://ui.shadcn.com/init?base=radix&style=vega&baseColor=gray&theme=blue&iconLibrary=lucide&font=inter&menuAccent=subtle&menuColor=default&radius=default&template=next" \
--template next
Prompt Answers
√ What is your project named? ... leads-watch
√ Creating a new Next.js project.
√ Writing components.json.
Error Output
Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.
EPERM: operation not permitted, scandir 'C:\Users\fissi\Application Data'
Environment
OS: Windows 10 / Windows 11
Node.js: v24.11.0
pnpm: 10.21.0
Shell: CMD
shadcn/ui CLI: latest
Affected component/components
Not able to create a project
How to reproduce
Reproducibility
Reproducible on every run
pnpm dlx shadcn@latest create \
--preset "https://ui.shadcn.com/init?base=radix&style=vega&baseColor=gray&theme=blue&iconLibrary=lucide&font=inter&menuAccent=subtle&menuColor=default&radius=default&template=next" \
--template next
Windows-only (not tested on macOS/Linux)
Codesandbox/StackBlitz link
No response
Logs
√ What is your project named? ... leads-watch
√ Creating a new Next.js project.
√ Writing components.json.
Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.
EPERM: operation not permitted, scandir 'C:\Users\fissi\Application Data'
System Info
OS: Windows 10 / Windows 11
Node.js: v24.11.0
pnpm: 10.21.0
Shell: CMD
shadcn/ui CLI: latestBefore submitting
- I've made research efforts and searched the documentation
- I've searched for existing issues