Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't import shadcn button component #305

Closed
belugawhale3 opened this issue Feb 23, 2024 · 2 comments
Closed

Can't import shadcn button component #305

belugawhale3 opened this issue Feb 23, 2024 · 2 comments

Comments

@belugawhale3
Copy link

I tried running npx shadcn-ui@latest add button in Vscode on windows to get the shadcn button component and was thrown this error:
Command failed with exit code 1: pnpm add @radix-ui/react-slot
 WARN  Moving @types/node that was installed by a different package manager to "node_modules/.ignored"
 WARN  Moving @types/react that was installed by a different package manager to "node_modules/.ignored"
 WARN  Moving autoprefixer that was installed by a different package manager to "node_modules/.ignored"
 WARN  Moving eslint that was installed by a different package manager to "node_modules/.ignored"
 WARN  Moving eslint-config-next that was installed by a different package manager to "node_modules/.ignored"
 WARN  Moving eslint-config-prettier that was installed by a different package manager to "node_modules/.ignored"
 WARN  Moving eslint-plugin-react that was installed by a different package manager to "node_modules/.ignored"
 WARN  Moving eslint-plugin-tailwindcss that was installed by a different package manager to "node_modules/.ignored"
 WARN  Moving postcss that was installed by a different package manager to "node_modules/.ignored"
 WARN  Moving prettier that was installed by a different package manager to "node_modules/.ignored"
 WARN  Moving prettier-plugin-tailwindcss that was installed by a different package manager to "node_modules/.ignored"
 WARN  Moving supabase that was installed by a different package manager to "node_modules/.ignored"
 WARN  Moving typescript that was installed by a different package manager to "node_modules/.ignored"
 WARN  Moving @radix-ui/react-toast that was installed by a different package manager to "node_modules/.ignored" WARN  Moving @stripe/stripe-js that was installed by a different package manager to "node_modules/.ignored"
 WARN  Moving @supabase/ssr that was installed by a different package manager to "node_modules/.ignored"
 WARN  Moving @supabase/supabase-js that was installed by a different package manager to "node_modules/.ignored"

Using windows currently. Any help?

@chriscarrollsmith
Copy link
Contributor

Looks like the problem may be that you're mixing package managers. Delete the npm lock file and the node_modules folder and try reinstalling all dependencies with pnpm.

@belugawhale3
Copy link
Author

Yep fixed , thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants