shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
75.11k stars 4.69k forks source link

[bug]: Can't install shadcn #5880

Open Happiesamuel opened 2 days ago

Happiesamuel commented 2 days ago

Describe the bug

                          npx shadcn@latest init -d

C:\Users\Hs\Documents\sam> ✔ Preflight checks. ✔ Verifying framework. Found Next.js. ✔ Validating Tailwind CSS. ✔ Validating import alias. ✔ Writing components.json. ✔ Checking registry. ✔ Updating tailwind.config.js ✔ Updating src\app\globals.css ⠋ Installing dependencies. Something went wrong. Please check the error below for more details. If the problem persists, please open an issue on GitHub.

Command failed with UNKNOWN: yarn add tailwindcss-animate class-variance-authority lucide-react clsx tailwind-merge spawn UNKNOWN

Affected component/components

the component itself

How to reproduce

                          npx shadcn@latest init -d

C:\Users\Hs\Documents\sam> ✔ Preflight checks. ✔ Verifying framework. Found Next.js. ✔ Validating Tailwind CSS. ✔ Validating import alias. ✔ Writing components.json. ✔ Checking registry. ✔ Updating tailwind.config.js ✔ Updating src\app\globals.css ⠋ Installing dependencies. Something went wrong. Please check the error below for more details. If the problem persists, please open an issue on GitHub.

Command failed with UNKNOWN: yarn add tailwindcss-animate class-variance-authority lucide-react clsx tailwind-merge spawn UNKNOWN

Codesandbox/StackBlitz link

No response

Logs

npx shadcn@latest init -d
>> C:\Users\Hs\Documents\sam>
✔ Preflight checks.
✔ Verifying framework. Found Next.js.
✔ Validating Tailwind CSS.
✔ Validating import alias.
✔ Writing components.json.
✔ Checking registry.
✔ Updating tailwind.config.js
✔ Updating src\app\globals.css
⠋ Installing dependencies.
Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

Command failed with UNKNOWN: yarn add tailwindcss-animate class-variance-authority lucide-react clsx tailwind-merge
spawn UNKNOWN

System Info

npx shadcn@latest init -d
>> C:\Users\Hs\Documents\sam>
✔ Preflight checks.
✔ Verifying framework. Found Next.js.
✔ Validating Tailwind CSS.
✔ Validating import alias.
✔ Writing components.json.
✔ Checking registry.
✔ Updating tailwind.config.js
✔ Updating src\app\globals.css
⠋ Installing dependencies.
Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

Command failed with UNKNOWN: yarn add tailwindcss-animate class-variance-authority lucide-react clsx tailwind-merge
spawn UNKNOWN

Before submitting

antoinefamibelle commented 2 days ago

Hi there! 🌟

Could you please provide some information such as your Node version and the operating system you are using? 💻

Thank you.

Happiesamuel commented 2 days ago

Version 20.15.1

Windows 11

On Wed, Nov 20, 2024, 1:41 PM Antoine Famibelle @.***> wrote:

Hi there! 🌟

Could you please provide some information such as your Node version and the operating system you are using? 💻

Thank you.

— Reply to this email directly, view it on GitHub https://github.com/shadcn-ui/ui/issues/5880#issuecomment-2488484572, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3LZMTWT5ZRHCG5WRKNEH7L2BR7RJAVCNFSM6AAAAABSEKMIFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBYGQ4DINJXGI . You are receiving this because you authored the thread.Message ID: @.***>

ChandanJal commented 1 day ago

Same issue

pnpm dlx shadcn@latest add sidebar
Packages: +170
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 170, reused 170, downloaded 0, added 170, done
✔ Checking registry.
✔ Updating tailwind.config.ts
✔ Updating app\globals.css
⠸ Installing dependencies.
Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

Command failed with exit code 1: pnpm add @radix-ui/react-slot class-variance-authority lucide-react @radix-ui/react-separator @radix-ui/react-dialog @radix-ui/react-tooltip
 WARN  Moving @hookform/resolvers that was installed by a different package manager to "node_modules/.ignored"
 WARN  Moving class-variance-authority that was installed by a different package manager to "node_modules/.ignored"
 WARN  Moving next that was installed by a different package manager to "node_modules/.ignored"
 EPERM  EPERM: operation not permitted, rename 'D:\....\node_modules\next' -> 'D:\....\node_modules\.ignored\next