[bug]: npm error Unsupported URL Type "workspace:": workspace:* using npx shadcn@canary init #6421
Open
2 tasks done
Labels
bug
Something isn't working
Describe the bug
When creating a new project and running
npx shadcn@canary init
, selecting the next.js(monorepo) version results in anEUNSUPPORTEDPROTOCOL
error.In my opinion, The reason for this is likely that Shadcn defaults to npm when it cannot detect a package manager, then attempts to run the npm install command. However, the monorepo template files are based on pnpm, which causes compatibility issues and results in the error
Affected component/components
CLI init(monorepo)
How to reproduce
npx shadcn@canary init
Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting
The text was updated successfully, but these errors were encountered: