ui icon indicating copy to clipboard operation
ui copied to clipboard

BUG:Next.js : Run the CLI command using yarn not working

Open RANJEETJ06 opened this issue 1 year ago • 2 comments

when i copy it choosing yarn ,when i past it i got the npx shadcn-ui@latest init

i should get yarn add shadcn-ui@latest

#BUG

RANJEETJ06 avatar Oct 23 '23 08:10 RANJEETJ06

Hi @RANJEETJ06 👏

This is the way that I fixed that!

I created the project in NextJS + Yarn & I initialized shadcn with npx shadcn-ui@latest init. It won't create a new package.json or package.lock.json file. It's good to go with yarn.lock file.

I think @shadcn needs to add the initialization with Yarn also.

WasathTheekshana avatar Oct 26 '23 19:10 WasathTheekshana

Hi @RANJEETJ06 👏

This is the way that I fixed that!

I created the project in NextJS + Yarn & I initialized shadcn with npx shadcn-ui@latest init. It won't create a new package.json or package.lock.json file. It's good to go with yarn.lock file.

I think @shadcn needs to add the initialization with Yarn also.

Thanks, this worked for me!

Dilantha-Wijesinghe avatar Oct 26 '23 19:10 Dilantha-Wijesinghe

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

shadcn avatar Feb 13 '24 23:02 shadcn