ui icon indicating copy to clipboard operation
ui copied to clipboard

Installation using pnpm doesn't work

Open torn4dom4n opened this issue 1 year ago • 3 comments

I try to use pnpm to setup a project following this document. Firstly, I added pnpm create next-app -e https://github.com/shadcn/next-template in the cmd and named it shadcnui-starter. After that, I opened shadcnui-starter folder and ran pnpm dev. Here is the error I found:

image

Everything looks fine when I use npm.

torn4dom4n avatar May 13 '23 18:05 torn4dom4n

exec pnpm up --latest && pnpm i then try running the dev server

kratos-respawned avatar May 14 '23 14:05 kratos-respawned

exec pnpm up --latest && pnpm i then try running the dev server

@kratos-respawned It's working now. Thank you. I can see a lot of dependencies updated:

dependencies:
- class-variance-authority 0.4.0
+ class-variance-authority 0.6.0
- lucide-react 0.105.0-alpha.4
+ lucide-react 0.216.0
- next 13.3.0
+ next 13.4.2
- react-day-picker 8.6.0
+ react-day-picker 8.7.1
- sharp 0.31.3
+ sharp 0.32.1

devDependencies:
- @ianvs/prettier-plugin-sort-imports 3.7.1
+ @ianvs/prettier-plugin-sort-imports 3.7.2
- @types/node 17.0.12
+ @types/node 20.1.4
- @types/react 18.0.22
+ @types/react 18.2.6
- @types/react-dom 18.0.7
+ @types/react-dom 18.2.4
- @typescript-eslint/parser 5.58.0
+ @typescript-eslint/parser 5.59.5
- autoprefixer 10.4.13
+ autoprefixer 10.4.14
- eslint 8.31.0
+ eslint 8.40.0
- eslint-config-next 13.0.0
+ eslint-config-next 13.4.2
- eslint-config-prettier 8.3.0
+ eslint-config-prettier 8.8.0
- eslint-plugin-react 7.31.11
+ eslint-plugin-react 7.32.2
- eslint-plugin-tailwindcss 3.8.0
+ eslint-plugin-tailwindcss 3.11.0
- postcss 8.4.21
+ postcss 8.4.23
- prettier 2.7.1
+ prettier 2.8.8
- tailwindcss 3.3.1
+ tailwindcss 3.3.2
- typescript 4.9.3
+ typescript 5.0.4

I follow the installation from this document, so I think next-template needs to be updated too.

torn4dom4n avatar May 14 '23 17:05 torn4dom4n

@torn4dom4n Yep. I'll update next-template. Thanks for the heads up.

shadcn avatar May 16 '23 09:05 shadcn

Closed this issue after updated

torn4dom4n avatar Aug 09 '23 18:08 torn4dom4n